Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Support recursive schema #1

Merged
merged 7 commits into from
May 1, 2019
Merged

Support recursive schema #1

merged 7 commits into from
May 1, 2019

Conversation

Deadarius
Copy link

@Deadarius Deadarius commented May 1, 2019

This is a copy of PR on original repo:
Please refer to temando#36

Note: no unit test coverage was introduced as original package pretty much has nearly none and all the necessary setup would be too costly at this stage. Testing is done manually for now - refer to test/project folder

Package will be renamed to @conqa/serverless-openapi-documentation and setup for publishing separately

@wrumsby wrumsby self-requested a review May 1, 2019 23:34
@Deadarius Deadarius merged commit 41292cc into conqa:master May 1, 2019
@@ -5,7 +5,9 @@ provider:
runtime: nodejs6.10

plugins:
- serverless-openapi-documentation
localPath: /Users/alex/dev/serverless-openapi-documentation
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change this path pls?

* Walks through the schema object recursively and updates references to point to openapi's components
* @param schema JSON Schema Object
*/
private updateReferences (schema: JSONSchema7): JSONSchema7 {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this var have a version number in it? Shouldn't it just be a generic word like "schema"? As the schema version is not relevant to this function.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants