Skip to content

Commit a891738

Browse files
authored
Merge pull request #1 from s3lph/chore-1.2.0
Update Go client to 1.2.0
2 parents 0433af3 + 29679a9 commit a891738

18 files changed

+66
-42
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This is the SpaceApi Validator api
55
## Overview
66
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.
77

8-
- API version: 1.1.0
8+
- API version: 1.2.0
99
- Package version: 1.0.0
1010
- Build package: org.openapitools.codegen.languages.GoClientCodegen
1111

UPDATING.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Updating the OpenAPI Client
2+
3+
```shell-session
4+
$ docker run -v $PWD:/local openapitools/openapi-generator-cli:v4.2.2 \
5+
generate \
6+
-i https://validator.spaceapi.io/openapi.json \
7+
-g go \
8+
-o /local \
9+
--additional-properties=packageName=spaceapivalidatorclient \
10+
--git-user-id spaceapi-community \
11+
--git-repo-id go-spaceapi-validator-client
12+
```

api/openapi.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ openapi: 3.0.2
22
info:
33
description: This is the SpaceApi Validator api
44
title: SpaceApi Validator
5-
version: 1.1.0
5+
version: 1.2.0
66
servers:
77
- description: The SpaceApi Validator Service
88
url: https://validator.spaceapi.io
99
paths:
1010
/v1:
1111
get:
12+
deprecated: true
1213
responses:
1314
200:
1415
content:
@@ -20,6 +21,7 @@ paths:
2021
- v1
2122
/v1/validate/:
2223
post:
24+
deprecated: true
2325
requestBody:
2426
content:
2527
application/json:
@@ -160,6 +162,9 @@ components:
160162
httpsForward: true
161163
contentType: true
162164
reachable: true
165+
checkedVersions:
166+
- checkedVersions
167+
- checkedVersions
163168
properties:
164169
valid:
165170
type: boolean
@@ -177,6 +182,10 @@ components:
177182
type: boolean
178183
certValid:
179184
type: boolean
185+
checkedVersions:
186+
items:
187+
type: string
188+
type: array
180189
validatedJson:
181190
type: object
182191
schemaErrors:
@@ -201,11 +210,18 @@ components:
201210
message: message
202211
validatedJson: '{}'
203212
message: message
213+
checkedVersions:
214+
- checkedVersions
215+
- checkedVersions
204216
properties:
205217
valid:
206218
type: boolean
207219
message:
208220
type: string
221+
checkedVersions:
222+
items:
223+
type: string
224+
type: array
209225
validatedJson:
210226
type: object
211227
schemaErrors:

api_v1.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* This is the SpaceApi Validator api
55
*
6-
* API version: 1.1.0
6+
* API version: 1.2.0
77
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
88
*/
99

api_v2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* This is the SpaceApi Validator api
55
*
6-
* API version: 1.1.0
6+
* API version: 1.2.0
77
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
88
*/
99

client.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* This is the SpaceApi Validator api
55
*
6-
* API version: 1.1.0
6+
* API version: 1.2.0
77
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
88
*/
99

@@ -39,7 +39,7 @@ var (
3939
xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`)
4040
)
4141

42-
// APIClient manages communication with the SpaceApi Validator API v1.1.0
42+
// APIClient manages communication with the SpaceApi Validator API v1.2.0
4343
// In most cases there should be only one, shared, APIClient.
4444
type APIClient struct {
4545
cfg *Configuration
@@ -159,12 +159,13 @@ func parameterToJson(obj interface{}) (string, error) {
159159
return string(jsonBuf), err
160160
}
161161

162+
162163
// callAPI do the request.
163164
func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) {
164165
if c.cfg.Debug {
165-
dump, err := httputil.DumpRequestOut(request, true)
166+
dump, err := httputil.DumpRequestOut(request, true)
166167
if err != nil {
167-
return nil, err
168+
return nil, err
168169
}
169170
log.Printf("\n%s\n", string(dump))
170171
}

configuration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* This is the SpaceApi Validator api
55
*
6-
* API version: 1.1.0
6+
* API version: 1.2.0
77
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
88
*/
99

docs/ValidateJsonV2Response.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**Valid** | **bool** | |
88
**Message** | **string** | |
9+
**CheckedVersions** | **[]string** | | [optional]
910
**ValidatedJson** | [**map[string]interface{}**](.md) | | [optional]
1011
**SchemaErrors** | [**[]SchemaError**](SchemaError.md) | | [optional]
1112

docs/ValidateUrlV2Response.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
1212
**Cors** | **bool** | |
1313
**ContentType** | **bool** | |
1414
**CertValid** | **bool** | |
15+
**CheckedVersions** | **[]string** | | [optional]
1516
**ValidatedJson** | [**map[string]interface{}**](.md) | | [optional]
1617
**SchemaErrors** | [**[]SchemaError**](SchemaError.md) | | [optional]
1718

go.mod

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,3 @@ require (
44
github.com/antihax/optional v1.0.0
55
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45
66
)
7-
8-
go 1.13

0 commit comments

Comments
 (0)