Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create schema on update if it does not exist
Makes the `cmgr update-schema` subcommand and cmgrd `POST /schemas/{schema_name}` function like upserts rather than updates. If the named schema does not exist, a warning will be logged and the schema will be created, rather than returning an error. This allows clients to call `update-schema` without the need to know whether a given schema has already been created or not, without needing to handle nonexistent schema errors and falling back to `add-schema`.
- Loading branch information