Skip to content

Commit

Permalink
fix: fix openapi using snake case (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
pinglin committed Mar 22, 2022
1 parent 7ffa5d0 commit fe755b7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 18 deletions.
2 changes: 2 additions & 0 deletions buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ plugins:
- generate_unbound_methods=true
- remote: buf.build/grpc-ecosystem/plugins/openapiv2:v2.7.2-1
out: gen/openapiv2
opt:
- json_names_for_fields=false
- remote: buf.build/sawadashota/plugins/protoc-gen-doc:v1.5.0
out: gen/grpc-doc
opt:
Expand Down
18 changes: 9 additions & 9 deletions instill/model/v1alpha/model.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@
}
},
{
"name": "fieldMask",
"name": "field_mask",
"description": "Update mask for a model instance.",
"in": "query",
"required": true,
Expand Down Expand Up @@ -389,11 +389,11 @@
"instillmodelv1alphaInput": {
"type": "object",
"properties": {
"imageUrl": {
"image_url": {
"type": "string",
"title": "Image type URL"
},
"imageBase64": {
"image_base64": {
"type": "string",
"title": "Image type base64"
}
Expand Down Expand Up @@ -433,7 +433,7 @@
"type": "string",
"title": "Model name"
},
"fullName": {
"full_name": {
"type": "string",
"title": "Model full name (i.e., [user_name/org_name]/model_name)",
"readOnly": true
Expand All @@ -442,7 +442,7 @@
"$ref": "#/definitions/ModelTask",
"title": "Model task"
},
"modelVersions": {
"model_versions": {
"type": "array",
"items": {
"$ref": "#/definitions/v1alphaModelVersion"
Expand Down Expand Up @@ -539,7 +539,7 @@
"format": "uint64",
"title": "Model version"
},
"modelId": {
"model_id": {
"type": "string",
"format": "uint64",
"title": "Model version corresponding model ID"
Expand All @@ -548,12 +548,12 @@
"type": "string",
"title": "Model version description"
},
"createdAt": {
"created_at": {
"type": "string",
"format": "date-time",
"title": "Model version creation time"
},
"updatedAt": {
"updated_at": {
"type": "string",
"format": "date-time",
"title": "Model version update time"
Expand Down Expand Up @@ -614,7 +614,7 @@
"v1alphaUpdateModelVersionResponse": {
"type": "object",
"properties": {
"modelVersion": {
"model_version": {
"$ref": "#/definitions/v1alphaModelVersion",
"title": "A model version instance"
}
Expand Down
18 changes: 9 additions & 9 deletions instill/pipeline/v1alpha/pipeline.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,15 @@
},
"parameters": [
{
"name": "pageSize",
"name": "page_size",
"description": "Page size.",
"in": "query",
"required": false,
"type": "string",
"format": "uint64"
},
{
"name": "pageToken",
"name": "page_token",
"description": "Page token.",
"in": "query",
"required": false,
Expand Down Expand Up @@ -292,7 +292,7 @@
}
},
{
"name": "fieldMask",
"name": "field_mask",
"description": "Update mask for a pipeline instance.",
"in": "query",
"required": true,
Expand Down Expand Up @@ -394,11 +394,11 @@
"instillpipelinev1alphaInput": {
"type": "object",
"properties": {
"imageUrl": {
"image_url": {
"type": "string",
"title": "Image type URL"
},
"imageBase64": {
"image_base64": {
"type": "string",
"title": "Image type base64"
}
Expand Down Expand Up @@ -579,7 +579,7 @@
},
"title": "A list of pipelines"
},
"nextPageToken": {
"next_page_token": {
"type": "string",
"title": "Next page token"
}
Expand Down Expand Up @@ -609,13 +609,13 @@
"type": "boolean",
"title": "Pipeline activity status"
},
"createdAt": {
"created_at": {
"type": "string",
"format": "date-time",
"title": "Pipeline creation time",
"readOnly": true
},
"updatedAt": {
"updated_at": {
"type": "string",
"format": "date-time",
"title": "Pipeline update time",
Expand All @@ -625,7 +625,7 @@
"$ref": "#/definitions/v1alphaRecipe",
"title": "Pipeline recipe"
},
"fullName": {
"full_name": {
"type": "string",
"title": "Pipeline full name (i.e., [user_name/org_name]/pipeline_name)",
"readOnly": true
Expand Down

0 comments on commit fe755b7

Please sign in to comment.