Most SpaceAPI implementation that implement v14 should already be compatible with v15 and can just announce compatibility for it as well:
{
...
"api_compatibility": [ "14", "15" ],
...
}
The exception are spaces that use things that were deprecated in v14 like the
hPA
instead of hPa
unit for the barometer sensor. See
https://github.com/SpaceApi/schema/blob/master/CHANGELOG.md#v15 for details.
If you're migrating from 0.13 it's fairly easy to do, under the right circumstances you can also serve a file that is compatible with both versions at the same time.
If you never set the state.open
field to null
(which is not valid anymore in v14), just add the api_compatibility
key, and you're good to go!
{
...
"api_compatibility": [ "14" ],
...
}
This is of course just the most basic thing, check out the full changelog for new, renamed or removed fields!
Note that fields that were renamed or removed in v14 can still be present in your endpoint (without any function), since we ignore all unknown fields.
For more information on the new API versioning scheme, check out pull request #56.
The open
field can't have a null
value anymore, but on the other hand the state
and the state.open
keys are not required anymore.
If previously your endpoint contained this:
{
...
"state": {
"open": null
},
...
}
...you can simply remove the state.open
key or the entire state
key to be compatible with v14.