-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add custom field for class name @W-13013140@ (#221)
* add custom field for class name * fix linting * add unit tests * update custom field name for clarity * update comment with new custom field name * update additional comments * use annotation and create class name helper method
- Loading branch information
1 parent
4bd96d7
commit 51f2622
Showing
7 changed files
with
134 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
testResources/raml/custom-field-invalid/custom-field-invalid.raml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#%RAML 1.0 | ||
|
||
title: Shop API from title | ||
(commerce-sdk): Custom Shop API Name (class name not set correctly) | ||
baseUri: https://anypoint.mulesoft.com/mocking/api/v1/links/27d5ffea-96a7-447b-b595-2b0e837a20c6/s/-/dw/shop/v19_5 | ||
version: v1 | ||
description: This is a base shop api for testing purposes | ||
protocols: https | ||
mediaType: application/json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"main": "custom-field-invalid.raml", | ||
"name": "Custom Field Invalid", | ||
"classifier": "raml", | ||
"tags": [], | ||
"groupId": "893f605e-10e2-423a-bdb4-f952f56eb6d8", | ||
"backwardsCompatible": false, | ||
"assetId": "custom-field-invalid", | ||
"version": "0.1.2", | ||
"apiVersion": "v1", | ||
"originalFormatVersion": "1.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#%RAML 1.0 | ||
|
||
title: Shop API | ||
(commerce-sdk): | ||
class-name: Custom Shop API Name | ||
(commerce-sdk): | ||
class-name: Custom Shop API Name 2 (not used) | ||
baseUri: https://anypoint.mulesoft.com/mocking/api/v1/links/27d5ffea-96a7-447b-b595-2b0e837a20c6/s/-/dw/shop/v19_5 | ||
version: v1 | ||
description: This is a base shop api for testing purposes | ||
protocols: https | ||
mediaType: application/json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"main": "custom-field.raml", | ||
"name": "Custom Field", | ||
"classifier": "raml", | ||
"tags": [], | ||
"groupId": "893f605e-10e2-423a-bdb4-f952f56eb6d8", | ||
"backwardsCompatible": false, | ||
"assetId": "custom-field", | ||
"version": "0.1.2", | ||
"apiVersion": "v1", | ||
"originalFormatVersion": "1.0" | ||
} |