CreateApiSchemaRequest
Information about the API schema.
Properties
Name | Type | Required | Description |
---|---|---|---|
type | CreateApiSchemaType1 | ✅ | The schema's type. |
files | CreateApiSchemaFiles1[] | ✅ | The list of files that are part of the schema. |
CreateApiSchemaType1
The schema's type.
Properties
Name | Type | Required | Description |
---|---|---|---|
PROTO2 | string | ✅ | "proto:2" |
PROTO3 | string | ✅ | "proto:3" |
GRAPHQL | string | ✅ | "graphql" |
OPENAPI3_1 | string | ✅ | "openapi:3_1" |
OPENAPI3 | string | ✅ | "openapi:3" |
OPENAPI2 | string | ✅ | "openapi:2" |
OPENAPI1 | string | ✅ | "openapi:1" |
RAML1 | string | ✅ | "raml:1" |
RAML0_8 | string | ✅ | "raml:0_8" |
WSDL2 | string | ✅ | "wsdl:2" |
WSDL1 | string | ✅ | "wsdl:1" |
ASYNCAPI2 | string | ✅ | "asyncapi:2" |
CreateApiSchemaFiles1
Properties
Name | Type | Required | Description |
---|---|---|---|
path | string | ❌ | The schema's file path. |
root | FilesRoot | ❌ | Information about the schema's root file. |
content | string | ❌ | The schema file's stringified contents. |
FilesRoot
Information about the schema's root file.
Properties
Name | Type | Required | Description |
---|---|---|---|
enabled | Enabled | ❌ | If true, tag the file as the root file. The root tag is only allowed for protobuf specifications. |
Enabled
If true, tag the file as the root file. The root tag is only allowed for protobuf specifications.
Properties
Name | Type | Required | Description |
---|---|---|---|
TRUE_ | boolean | ✅ | "true" |
Build Your Own SDKs with liblab
Build developer friendly SDKs in minutes from your APIs