Skip to content

Commit

Permalink
Add inline enum changes (#5)
Browse files Browse the repository at this point in the history
* add changes

* resolve inline enums

* make spec required

* update kind

* remove generic kind
  • Loading branch information
thisisibrahimd authored Jul 22, 2024
1 parent ab132c1 commit 901100c
Show file tree
Hide file tree
Showing 25 changed files with 2,654 additions and 969 deletions.
8 changes: 6 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ openapi_schema_url := "https://raw.githubusercontent.com/thisisibrahimd/OpenSLO/
gen: gen-v1-spec

gen-v1-spec:
rm -rf {{ openslo_spec_dir }}/v1/model_*.go
GO_POST_PROCESS_FILE="$(which gofmt) -w" openapi-generator \
generate \
-i {{ openapi_schema_url }} \
Expand All @@ -13,6 +14,9 @@ gen-v1-spec:
--global-property models,modelDocs=false,supportingFiles \
--package-name openslo_v1 \
--model-package openslo_v1 \
--enable-post-process-file
rm {{ openslo_spec_dir }}/v1/.openapi-generator/VERSION {{ openslo_spec_dir }}/v1/.openapi-generator/FILES
--enable-post-process-file \
--inline-schema-options RESOLVE_INLINE_ENUMS=true
rm \
{{ openslo_spec_dir }}/v1/.openapi-generator/VERSION \
{{ openslo_spec_dir }}/v1/.openapi-generator/FILES
rmdir {{ openslo_spec_dir }}/v1/.openapi-generator
Loading

0 comments on commit 901100c

Please sign in to comment.