Skip to content

Conversation

sneakyvv
Copy link
Contributor

For a schema with "type": null, the generated sample is "?". In that case addSchemaInfoToExample will cause an error in the console, since it's trying to add ::DESCRIPTION to a string (if the schema happens to have the description property).

This PR fixes that by adding an early exit condition.

@mrin9 mrin9 merged commit d4c8f4b into rapi-doc:master Nov 25, 2020
@mrin9
Copy link
Collaborator

mrin9 commented Nov 25, 2020

Thanks for fixing it !!!

@sneakyvv sneakyvv deleted the protect-addSchemaInfoToExample branch November 25, 2020 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants