website icon indicating copy to clipboard operation
website copied to clipboard

Update for schema v15

Open dbrgn opened this issue 1 year ago • 3 comments

Checklist:

  • [x] Update schema docs (https://github.com/SpaceApi/website/pull/139)
  • [x] Update example (https://github.com/SpaceApi/website/pull/139)
  • [ ] Update mention of nullability
  • [x] Test that validator works with v15
  • [x] Release schema v15 (https://github.com/SpaceApi/schema/pull/117, https://github.com/SpaceApi/schema/pull/118)

dbrgn avatar Nov 10 '24 17:11 dbrgn

What is meant with "Update mention of nullability"?

rnestler avatar Dec 28 '24 21:12 rnestler

Probably the sentence here https://spaceapi.io/docs/:

Most types are not nullable. That means that they may not contain the value "null", but they may be left away if they're not required.

In v14, the state.open field was nullable, since v15 no field is nullable anymore. Suggestion for new wording:

Since v15, no more schema fields are nullable. That means that they may not contain the value "null", but they may be left away if they're not required.

dbrgn avatar Dec 31 '24 12:12 dbrgn

I think in the future we'd want to handle null the same as absent.

rnestler avatar Dec 31 '24 16:12 rnestler