Skip to content

Align OpenAPI filter schema with scalar filter values#31

Merged
mindpower merged 1 commit into
ards-project:mainfrom
yangbaechu:fix/openapi-filter-scalar-values
Jun 21, 2026
Merged

Align OpenAPI filter schema with scalar filter values#31
mindpower merged 1 commit into
ards-project:mainfrom
yangbaechu:fix/openapi-filter-scalar-values

Conversation

@yangbaechu

@yangbaechu yangbaechu commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Summary

This updates the OpenAPI schema for QueryModel.filter values to match the existing prose spec and CDDL.

The documented contract already allows scalar filter values:

However, before this PR, the formal OpenAPI schema only allowed array<string>, so generated clients could reject scalar filter values even though the prose and CDDL allow them.

Change

  • Update QueryModel.filter.additionalProperties from array<string> to oneOf: string | array<string>.

Notes

This does not change the documented API contract. It makes the machine-readable OpenAPI schema match the existing prose and CDDL behavior so generated clients can represent scalar filter values correctly.

@mindpower

Copy link
Copy Markdown
Collaborator

Thanks @yangbaechu !

@mindpower mindpower merged commit d56e049 into ards-project:main Jun 21, 2026
1 check passed
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