-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(APIC-741): run tests for flattened model (#741)
* test(APIC-741): run tests for flattened model * test: add waitUntil * test: add waitUntil
- Loading branch information
1 parent
67e54b2
commit 715f997
Showing
8 changed files
with
126 additions
and
73 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,5 +61,6 @@ dist/ | |
|
||
# AMF models | ||
demo/models/*.json | ||
demo/models/flattened/*.json | ||
|
||
.idea/ |
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,21 @@ | ||
{ | ||
"models/demo-api/demo-api.raml": { "type": "RAML 1.0", "flattened": true}, | ||
"models/google-drive-api/google-drive-api.raml": { "type": "RAML 1.0", "flattened": true}, | ||
"models/multi-server/multi-server.yaml": { "type": "OAS 3.0", "mime": "application/yaml", "flattened": true }, | ||
"models/async-api/async-api.yaml": { "type": "ASYNC 2.0", "flattened": true }, | ||
"models/APIC-553/APIC-553.raml": { "type": "RAML 1.0", "flattened": true}, | ||
"models/APIC-554/APIC-554.raml": { "type": "RAML 1.0", "flattened": true}, | ||
"models/APIC-557/APIC-557.yaml": { "type": "OAS 3.0", "flattened": true }, | ||
"models/anyOf/anyOf.yaml": { "type": "ASYNC 2.0", "flattened": true }, | ||
"models/streetlights/streetlights.yaml": { "type": "ASYNC 2.0", "flattened": true }, | ||
"models/test-api/test-api.raml": { "type": "RAML 1.0", "flattened": true}, | ||
"models/test-api/basicAuth.raml": { "type": "RAML 1.0", "flattened": true}, | ||
"models/test-api/documentation.raml": { "type": "RAML 1.0", "flattened": true}, | ||
"models/test-api/extension.raml": { "type": "RAML 1.0", "flattened": true}, | ||
"models/test-api/library.raml": { "type": "RAML 1.0", "flattened": true}, | ||
"models/test-api/overlay.raml": { "type": "RAML 1.0", "flattened": true}, | ||
"models/test-api/person.raml": { "type": "RAML 1.0", "flattened": true}, | ||
"models/representative-service/representative-service.yaml": { "type": "OAS 3.0", "flattened": true }, | ||
"models/APIC-763/APIC-763.raml": { "type": "RAML 1.0", "flattened": true}, | ||
"models/multipart-api/multipart-api.raml": { "type": "RAML 1.0", "flattened": true} | ||
} |
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 |
---|---|---|
@@ -1,6 +1,14 @@ | ||
/* eslint-disable no-console */ | ||
// eslint-disable-next-line no-undef | ||
const generator = require('@api-components/api-model-generator'); | ||
generator('demo/apis.json', { | ||
dest: 'demo/models/' | ||
}) | ||
.then(() => console.log('Models created')) | ||
.catch((cause) => console.error(cause)); | ||
}). | ||
then(() => console.log('Models created')). | ||
catch((cause) => console.error(cause)); | ||
|
||
generator('demo/flattened-apis.json', { | ||
dest: 'demo/models/flattened/' | ||
}). | ||
then(() => console.log('Models created')). | ||
catch((cause) => console.error(cause)); |
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
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
Oops, something went wrong.