Skip to content
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

issue with converter json to openapi schema #28

Open
tatschke opened this issue Nov 27, 2024 · 0 comments
Open

issue with converter json to openapi schema #28

tatschke opened this issue Nov 27, 2024 · 0 comments

Comments

@tatschke
Copy link

Hi I'm trying to use it from your website. all the converters are working except for this one. It's not even working with the payload example.

https://tools.w3cub.com/json-schema-to-openapi-schema

Thanks in advance!

This is the error:

3260-707dc638e0c8555f.js:1 SyntaxError: Unexpected token 'c', "const conv"... is not valid JSON
at JSON.parse ()
at json-schema-to-openapi-schema-a6414c0277dad978.js:1:429
at h (main-4df840aa51c51574.js:1:123803)
at Generator. (main-4df840aa51c51574.js:1:123581)
at Generator.next (main-4df840aa51c51574.js:1:124209)
at n (7326-3bbd6528a50a7a01.js:20:4904)
at u (7326-3bbd6528a50a7a01.js:20:5101)
at 7326-3bbd6528a50a7a01.js:20:5160
at new Promise ()
at 7326-3bbd6528a50a7a01.js:20:5042

and this is the payload I'm using:

{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array",
"items": [
{
"type": "object",
"properties": {
"_id": {
"type": "string"
},
"index": {
"type": "integer"
},
"guid": {
"type": "string"
},
"isActive": {
"type": "boolean"
},
"balance": {
"type": "string"
},
"picture": {
"type": "string"
},
"tags": {
"type": "array",
"items": [
{
"type": "string"
},
{
"type": "string"
},
{
"type": "string"
},
{
"type": "string"
},
{
"type": "string"
},
{
"type": "string"
},
{
"type": "string"
}
]
},
"favoriteFruit": {
"type": "string"
}
},
"required": [
"_id",
"index",
"guid",
"isActive",
"balance",
"picture",
"tags",
"favoriteFruit"
]
}
]
}

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

No branches or pull requests

1 participant