-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the generated code according to the current status of the repo
Scripted via: `make regenerate-samples` Co-authored-by: Filipe Pereira <fpereira@yelp.com>
- Loading branch information
1 parent
e835456
commit dcf4e3d
Showing
41 changed files
with
536 additions
and
1,447 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
.PHONY: install-hooks | ||
.PHONY: install-hooks regenerate-samples | ||
|
||
.git/hooks/pre-commit: venv | ||
${CURDIR}/venv/bin/pre-commit install --install-hooks | ||
|
||
install-hooks: .git/hooks/pre-commit | ||
@true | ||
|
||
regenerate-samples: | ||
${CURDIR}/gradlew plugin:build | ||
${CURDIR}/gradlew plugin:publishToMavenLocal | ||
${CURDIR}/gradlew generateSwagger | ||
|
||
venv: | ||
virtualenv venv | ||
./venv/bin/pip install pre-commit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,104 +1 @@ | ||
{ | ||
"definitions": { | ||
"Category": { | ||
"description": "A Category used to group pets", | ||
"properties": { | ||
"id": { | ||
"description": "Unique ID of the Category", | ||
"format": "int64", | ||
"type": "integer" | ||
}, | ||
"name": { | ||
"description": "Name of this category", | ||
"type": "string" | ||
} | ||
}, | ||
"type": "object" | ||
}, | ||
"Pet": { | ||
"description": "Represents a specific Pet in the store", | ||
"properties": { | ||
"category": { | ||
"$ref": "#/definitions/Category", | ||
"description": "Optional category of the pet" | ||
}, | ||
"id": { | ||
"description": "Unique ID of this Pet", | ||
"format": "int64", | ||
"type": "integer" | ||
}, | ||
"name": { | ||
"description": "Name of this specific pet", | ||
"type": "string" | ||
}, | ||
"photoUrls": { | ||
"description": "Photo URls for this Pet on the bucket", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"tags": { | ||
"description": "Pet status in the store", | ||
"items": { | ||
"$ref": "#/definitions/Tag" | ||
}, | ||
"type": "array" | ||
} | ||
}, | ||
"required": [ | ||
"name", | ||
"photoUrls" | ||
], | ||
"type": "object" | ||
}, | ||
"Tag": { | ||
"description": "A Tag used to group entities", | ||
"properties": { | ||
"id": { | ||
"description": "Unique ID of the Tag", | ||
"format": "int64", | ||
"type": "integer" | ||
}, | ||
"name": { | ||
"description": "Name of this Tag", | ||
"type": "string" | ||
} | ||
}, | ||
"type": "object" | ||
} | ||
}, | ||
"info": { | ||
"description": "This is a simplified version of the sample server Petstore server.", | ||
"title": "Swagger Petstore", | ||
"version": "1.0.0" | ||
}, | ||
"paths": { | ||
"/pet/{petId}": { | ||
"get": { | ||
"description": "Returns a single pet", | ||
"operationId": "getPetById", | ||
"parameters": [ | ||
{ | ||
"description": "ID of pet to return", | ||
"format": "int64", | ||
"in": "path", | ||
"name": "petId", | ||
"required": true, | ||
"type": "integer" | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "successful operation", | ||
"schema": { | ||
"$ref": "#/definitions/Pet" | ||
} | ||
} | ||
}, | ||
"summary": "Find pet by ID" | ||
} | ||
} | ||
}, | ||
"swagger": "2.0" | ||
} | ||
{"swagger":"2.0","info":{"description":"This is a simplified version of the sample server Petstore server.","version":"1.0.0","title":"Swagger Petstore"},"paths":{"/pet/{petId}":{"get":{"summary":"Find pet by ID","description":"Returns a single pet","operationId":"getPetById","parameters":[{"name":"petId","in":"path","description":"ID of pet to return","required":true,"type":"integer","format":"int64"}],"responses":{"200":{"description":"successful operation","schema":{"$ref":"#/definitions/Pet"}}}}}},"definitions":{"Category":{"type":"object","properties":{"id":{"type":"integer","format":"int64","description":"Unique ID of the Category"},"name":{"type":"string","description":"Name of this category"}},"description":"A Category used to group pets"},"Pet":{"type":"object","required":["name","photoUrls"],"properties":{"category":{"description":"Optional category of the pet","$ref":"#/definitions/Category"},"id":{"type":"integer","format":"int64","description":"Unique ID of this Pet"},"name":{"type":"string","description":"Name of this specific pet"},"photoUrls":{"type":"array","description":"Photo URls for this Pet on the bucket","items":{"type":"string"}},"tags":{"type":"array","description":"Pet status in the store","items":{"$ref":"#/definitions/Tag"}}},"description":"Represents a specific Pet in the store"},"Tag":{"type":"object","properties":{"id":{"type":"integer","format":"int64","description":"Unique ID of the Tag"},"name":{"type":"string","description":"Name of this Tag"}},"description":"A Tag used to group entities"}}} |
Oops, something went wrong.