Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Spec #17

Merged
merged 1 commit into from
Aug 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ install-tools:
fetch-spec:
curl --silent "https://api.artifactsmmo.com/openapi.json" | jq . > spec/openapi.json

all: install-tools fetch-spec process-spec generate-client test

process-spec:
openapi-down-convert --input spec/openapi.json --output spec/openapi-3.0.json
sed -i '' 's/"type": "null"/"nullable": true/g' spec/openapi-3.0.json
Expand Down
159 changes: 3 additions & 156 deletions client/client.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

86 changes: 11 additions & 75 deletions spec/openapi-3.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -1147,80 +1147,6 @@
}
}
},
"/my/{name}/logs": {
"get": {
"tags": [
"My characters"
],
"summary": "Get Character Logs",
"description": "History of your character's last 100 actions.",
"operationId": "get_character_logs_my__name__logs_get",
"security": [
{
"JWTBearer": []
}
],
"parameters": [
{
"name": "name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-zA-Z0-9_-]+$",
"title": "Character name",
"description": "Name of your character."
},
"description": "Name of your character."
},
{
"name": "page",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"minimum": 1,
"description": "Page number",
"default": 1,
"title": "Page"
},
"description": "Page number"
},
{
"name": "size",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Page size",
"default": 50,
"title": "Size"
},
"description": "Page size"
}
],
"responses": {
"200": {
"description": "Successfully fetched logs.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DataPage_LogSchema_"
}
}
}
},
"404": {
"description": "Logs not found."
},
"498": {
"description": "Character not found."
}
}
}
},
"/my/logs": {
"get": {
"tags": [
Expand Down Expand Up @@ -1276,6 +1202,9 @@
},
"404": {
"description": "Logs not found."
},
"498": {
"description": "Character not found."
}
}
}
Expand Down Expand Up @@ -3440,6 +3369,12 @@
"title": "Remainingseconds",
"description": "Deprecated** The remaining seconds of the cooldown."
},
"started_at": {
"type": "string",
"format": "date-time",
"title": "Started At",
"description": "The start of the cooldown."
},
"expiration": {
"type": "string",
"format": "date-time",
Expand Down Expand Up @@ -3473,6 +3408,7 @@
"remaining_seconds",
"totalSeconds",
"remainingSeconds",
"started_at",
"expiration",
"reason"
],
Expand Down Expand Up @@ -5745,4 +5681,4 @@
}
}
}
}
}
Loading
Loading