Skip to content

Conversation

@david-crespo
Copy link
Collaborator

@david-crespo david-crespo commented May 6, 2025

Closes #283

Whoops, nullability was removed in #185. I think the argument there was correct that nullability doesn't make sense in query and path params, but we do need to handle it in API responses. The point about it being OK for us to be more restrictive than the API makes sense for what we send (it would apply to request bodies as well, for example) but not for what we receive, which we have no control over. See oxidecomputer/console#2820. We are not doing anything special for query and path params here, but we are using schemaToTypes on them too, so they get | null just like fields in the component schemas.

@david-crespo david-crespo added this to the 15 milestone May 6, 2025
@david-crespo david-crespo self-assigned this May 6, 2025
@david-crespo david-crespo requested a review from charliepark May 6, 2025 18:41
@david-crespo david-crespo changed the title Nullable types Handle nullable fields May 6, 2025
@david-crespo
Copy link
Collaborator Author

Validated in oxidecomputer/console#2821

@david-crespo david-crespo merged commit 2c06a3f into main May 6, 2025
3 checks passed
@david-crespo david-crespo deleted the nullable-types branch May 6, 2025 22:25
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.

Oxql result data points should be nullable

2 participants