Skip to content

Commit 0433af3

Browse files
committed
Update validator openapi.json
1 parent 1b8b2be commit 0433af3

17 files changed

+98
-24
lines changed

README.md

Lines changed: 2 additions & 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: 0.0.1
8+
- API version: 1.1.0
99
- Package version: 1.0.0
1010
- Build package: org.openapitools.codegen.languages.GoClientCodegen
1111

@@ -41,6 +41,7 @@ Class | Method | HTTP request | Description
4141

4242
## Documentation For Models
4343

44+
- [SchemaError](docs/SchemaError.md)
4445
- [ServerInformation](docs/ServerInformation.md)
4546
- [ValidateJsonV2Response](docs/ValidateJsonV2Response.md)
4647
- [ValidateUrlV2](docs/ValidateUrlV2.md)

api/openapi.yaml

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openapi: 3.0.2
22
info:
33
description: This is the SpaceApi Validator api
44
title: SpaceApi Validator
5-
version: 0.0.1
5+
version: 1.1.0
66
servers:
77
- description: The SpaceApi Validator Service
88
url: https://validator.spaceapi.io
@@ -126,6 +126,7 @@ components:
126126
url: url
127127
properties:
128128
url:
129+
pattern: uri
129130
type: string
130131
required:
131132
- url
@@ -148,7 +149,13 @@ components:
148149
valid: true
149150
cors: true
150151
certValid: true
152+
schemaErrors:
153+
- field: field
154+
message: message
155+
- field: field
156+
message: message
151157
isHttps: true
158+
validatedJson: '{}'
152159
message: message
153160
httpsForward: true
154161
contentType: true
@@ -170,6 +177,12 @@ components:
170177
type: boolean
171178
certValid:
172179
type: boolean
180+
validatedJson:
181+
type: object
182+
schemaErrors:
183+
items:
184+
$ref: '#/components/schemas/SchemaError'
185+
type: array
173186
required:
174187
- certValid
175188
- contentType
@@ -181,12 +194,36 @@ components:
181194
ValidateJsonV2Response:
182195
example:
183196
valid: true
197+
schemaErrors:
198+
- field: field
199+
message: message
200+
- field: field
201+
message: message
202+
validatedJson: '{}'
184203
message: message
185204
properties:
186205
valid:
187206
type: boolean
188207
message:
189208
type: string
209+
validatedJson:
210+
type: object
211+
schemaErrors:
212+
items:
213+
$ref: '#/components/schemas/SchemaError'
214+
type: array
190215
required:
191216
- message
192217
- valid
218+
SchemaError:
219+
example:
220+
field: field
221+
message: message
222+
properties:
223+
field:
224+
type: string
225+
message:
226+
type: string
227+
required:
228+
- field
229+
- message

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: 0.0.1
6+
* API version: 1.1.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: 0.0.1
6+
* API version: 1.1.0
77
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
88
*/
99

client.go

Lines changed: 2 additions & 2 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: 0.0.1
6+
* API version: 1.1.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 v0.0.1
42+
// APIClient manages communication with the SpaceApi Validator API v1.1.0
4343
// In most cases there should be only one, shared, APIClient.
4444
type APIClient struct {
4545
cfg *Configuration

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: 0.0.1
6+
* API version: 1.1.0
77
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
88
*/
99

docs/SchemaError.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# SchemaError
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**Field** | **string** | |
8+
**Message** | **string** | |
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+

docs/ValidateJsonV2Response.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**Valid** | **bool** | |
88
**Message** | **string** | |
9+
**ValidatedJson** | [**map[string]interface{}**](.md) | | [optional]
10+
**SchemaErrors** | [**[]SchemaError**](SchemaError.md) | | [optional]
911

1012
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1113

docs/ValidateUrlV2Response.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Name | Type | Description | Notes
1212
**Cors** | **bool** | |
1313
**ContentType** | **bool** | |
1414
**CertValid** | **bool** | |
15+
**ValidatedJson** | [**map[string]interface{}**](.md) | | [optional]
16+
**SchemaErrors** | [**[]SchemaError**](SchemaError.md) | | [optional]
1517

1618
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1719

model_schema_error.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
* SpaceApi Validator
3+
*
4+
* This is the SpaceApi Validator api
5+
*
6+
* API version: 1.1.0
7+
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
8+
*/
9+
10+
package spaceapivalidatorclient
11+
12+
// SchemaError struct for SchemaError
13+
type SchemaError struct {
14+
Field string `json:"field"`
15+
Message string `json:"message"`
16+
}

0 commit comments

Comments
 (0)