Skip to content

Commit

Permalink
chore: add definitions.json for schema referencing
Browse files Browse the repository at this point in the history
  • Loading branch information
moshloop committed Jan 9, 2025
1 parent 90be3f8 commit fca8807
Show file tree
Hide file tree
Showing 6 changed files with 9,225 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and
$(LOCALBIN):
mkdir -p $(LOCALBIN)

schema/openapi/_definitions.json:
cat schema/openapi/connection.schema.json | jq 'del(.["$$ref"], .["$$id"], .["$$schema"] )' > schema/openapi/connection.definitions.json
cat schema/openapi/scrape_config.spec.schema.json | jq 'del(.["$$ref"], .["$$id"], .["$$schema"] )' > schema/openapi/scrape_config.definitions.json
cat schema/openapi/notification.schema.json | jq 'del(.["$$ref"], .["$$id"], .["$$schema"] )' > schema/openapi/notification.definitions.json
cat schema/openapi/topology.spec.schema.json | jq 'del(.["$$ref"], .["$$id"], .["$$schema"] )' > schema/openapi/topology.definitions.json
cat schema/openapi/playbook-spec.schema.json | jq 'del(.["$$ref"], .["$$id"], .["$$schema"] )' > schema/openapi/playbook.definitions.json


download-openapi-schemas:
mkdir -p tmp

Expand Down
Loading

0 comments on commit fca8807

Please sign in to comment.