-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support example tag on slice field. #49
Comments
Interesting, looks like a bug, let me check in details. |
But also regarding your expectations, example is applied to the property, so in this case it won't be "b": {
"items": {
"type": "string",
"example": "example of b's item"
},
"type": [
"array",
"null"
]
} but rather something like "b": {
"examples": ["example of b"]
"items": {
"type": "string",
},
"type": [
"array",
"null"
]
} |
better, looking forward to a new tag. thx |
Please check test for an example of example. 🙃 https://github.com/swaggest/jsonschema-go/blob/v0.3.38/reflect_test.go#L1279 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
code:
output: ( there is no example on field "b")
wanted:
The text was updated successfully, but these errors were encountered: