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

Incorrect required field in STRUCT_MEMBER #98

Open
bartekryba opened this issue May 29, 2023 · 0 comments
Open

Incorrect required field in STRUCT_MEMBER #98

bartekryba opened this issue May 29, 2023 · 0 comments

Comments

@bartekryba
Copy link

I think that the "Typed parameter" in required array is incorrect, as it references the title.

It caused errors in jsonschema validation. Also when I deleted this requirement, the validation of required name and type fields still worked, meaning it wouldn't accept a struct_member that would miss those.

"STRUCT_MEMBER": {
"title": "Struct member",
"allOf": [
{
"title": "Typed parameter",
"$ref": "#/components/schemas/TYPED_PARAMETER"
},
{
"type": "object",
"title": "Event emitter",
"properties": {
"offset": {
"title": "Offset",
"description": "offset of this property within the struct",
"type": "integer"
}
}
}
],
"required": [
"Typed parameter"
]

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