Minor Changes
-
#1405
f9fb243
Thanks @patzick! - Updated openapi-typescript to v7. Additional checks for better generation -
#1365
6abe9ab
Thanks @patzick! -validateJson
command now checks endpoints exposed by the API to show if there are any endpoints missing in the schema or the schema contains some endpoints definitions, which are not exposed by the backend instancetun it in the console like this:
shopware-api-gen validateJson --apiType=store shopware-api-gen validateJson --apiType=admin
You need to have the same .env variables as needed for
loadSchema
command as the CLI is checking endpoints against the running instance.
Patch Changes
-
#1364
221af3c
Thanks @patzick! - Fix patching schema when there is an oveerite with the_DELETE
key, and the value was not present in the original schema. In that case there is nothing to delete and value should be omitted. -
#1330
2fdb986
Thanks @mkucmus! - Avoid schema loading when internal value_DELETE_
is used for$ref
key.parse function of
json5
library tries to load a$ref
by loading a file under the reference value, and that's whyENOENT: no such file or directory, open '{cwd}/_DELETE'_
error was being thrown when there was no
_DELETE_
schema available locally (in the same json schema). -
Updated dependencies [
6abe9ab
,0643174
,266bb32
,f9fb243
,15bebee
,ebb10eb
]:- @shopware/[email protected]