-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Merge branch 'main' into DEVDOCS-5831"
- Loading branch information
Showing
145 changed files
with
7,418 additions
and
8,556 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,93 @@ | ||
extends: spectral:oas | ||
rules: | ||
info-contact: off | ||
oas3-unused-component: off | ||
properties-type-object: | ||
description: "type: object must have a properties sibling." | ||
given: "$..[?(@ && @.type == 'object')]" | ||
severity: error | ||
# must not be resolved because $ref-defined objects shall have its type | ||
# defined in the referenced schema, not the referencing field (and $ref | ||
# must be the only property, anyway) | ||
resolved: false | ||
# type field must be defined and contain the value object | ||
then: | ||
- field: "properties" | ||
function: "truthy" | ||
items-type-array: | ||
description: "type: array must have an items sibling." | ||
given: "$..[?(@ && @.type == 'array')]" | ||
severity: error | ||
# must not be resolved because $ref-defined objects shall have its type | ||
# defined in the referenced schema, not the referencing field (and $ref | ||
# must be the only property, anyway) | ||
resolved: false | ||
# type field must be defined and contain the value object | ||
then: | ||
- field: "items" | ||
function: "truthy" | ||
type-object-properties: | ||
description: "Objects with properties must have type: object." | ||
given: "$..[?(@ && @.properties)]" | ||
severity: error | ||
# must not be resolved because $ref-defined objects shall have its type | ||
# defined in the referenced schema, not the referencing field (and $ref | ||
# must be the only property, anyway) | ||
resolved: false | ||
# type field must be defined and contain the value object | ||
then: | ||
- field: "type" | ||
function: defined | ||
- field: "type" | ||
function: enumeration | ||
functionOptions: | ||
values: | ||
- object | ||
oas2-unused-definition: off | ||
except: | ||
'reference/tax_provider.yml': | ||
- oas3-schema | ||
'reference/carts.v3.yml': | ||
- oas2-oneOf | ||
- oas2-valid-schema-example | ||
- operation-tag-defined | ||
'reference/catalog.v3.yml': | ||
- oas2-operation-security-defined | ||
- oas3-schema | ||
- oas2-schema | ||
- oas2-valid-media-example | ||
- oas2-valid-schema-example | ||
'reference/channels.v3.yml': | ||
- oas3-schema | ||
- oas3-valid-media-example | ||
'reference/current_customer.yml': | ||
- operation-success-response | ||
'reference/custom-template-associations.v3.yml': | ||
- openapi-tags | ||
- operation-tag-defined | ||
'reference/customer_login.yml': | ||
- operation-success-response | ||
'reference/email_templates.v3.yml': | ||
- oas3-schema | ||
'reference/geography.v2.yml': | ||
- oas2-valid-media-example | ||
'reference/orders.v2.oas2.yml': | ||
- oas3-valid-schema-example | ||
- oas3-valid-media-example | ||
- oas3-schema | ||
'reference/orders.v3.yml': | ||
- oas2-valid-schema-example | ||
- oas2-valid-media-example | ||
- oas2-anyOf | ||
'reference/settings.v3.yml': | ||
- oas3-valid-media-example | ||
'reference/sites.v3.yml': | ||
- oas2-valid-media-example | ||
'reference/store_information.v2.yml': | ||
- oas2-valid-media-example | ||
- oas2-valid-schema-example | ||
'reference/themes.v3.yml': | ||
- oas3-schema | ||
'reference/webhooks.v3.yml': | ||
- oas3-valid-media-example | ||
'carts.v3.yml': | ||
- oas2-oneOf | ||
- oas2-valid-schema-example | ||
'catalog.v3.yml': | ||
- oas2-operation-security-defined | ||
- oas3-schema | ||
- oas2-schema | ||
- oas2-valid-media-example | ||
- oas2-valid-schema-example | ||
'channels.v3.yml': | ||
- oas3-schema | ||
- oas3-valid-media-example | ||
'current_customer.yml': | ||
- operation-success-response | ||
'customer_login.yml': | ||
- operation-success-response | ||
'email_templates.v3.yml': | ||
- oas3-schema | ||
'geography.v2.yml': | ||
- oas2-valid-media-example | ||
'orders.v2.oas2.yml': | ||
- oas3-valid-schema-example | ||
- oas3-valid-media-example | ||
- oas3-schema | ||
'orders.v3.yml': | ||
- oas2-valid-schema-example | ||
- oas2-valid-media-example | ||
- oas2-anyOf | ||
'settings.v3.yml': | ||
- oas3-valid-media-example | ||
'sites.v3.yml': | ||
- oas2-valid-media-example | ||
'store_information.v2.yml': | ||
- oas2-valid-media-example | ||
- oas2-valid-schema-example | ||
'themes.v3.yml': | ||
- oas3-schema | ||
'webhooks.v3.yml': | ||
- oas3-valid-media-example | ||
'pages.v3.yml': | ||
- oas3-valid-media-example | ||
- oas3-valid-schema-example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
openapi: '3.0.3' | ||
info: | ||
title: Catalog - custom fields V2 | ||
description: |- | ||
Custom fields V2 | ||
title: Catalog - Custom Fields V2 | ||
termsOfService: 'https://www.bigcommerce.com/terms' | ||
contact: | ||
name: BigCommerce | ||
url: 'https://www.bigcommerce.com' | ||
email: [email protected] | ||
version: '1.0.1' | ||
servers: | ||
- url: 'https://api.bigcommerce.com/stores/{store_hash}/v2' | ||
- url: 'https://{{store_url}}/api/v2' | ||
variables: | ||
store_hash: | ||
default: store_hash | ||
description: Permanent ID of the BigCommerce store. | ||
store_url: | ||
default: store_url | ||
description: Permanent url of the BigCommerce store. | ||
description: BigCommerce API Gateway | ||
security: | ||
- basicAuth: [] | ||
|
@@ -41,8 +39,6 @@ paths: | |
The maximum limit is 250. If a limit isn’t provided, up to 50 custom_fields are returned by default. | ||
schema: | ||
type: integer | ||
default: 50 | ||
maximum: 250 | ||
responses: | ||
'200': | ||
$ref: '#/components/responses/customfields' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.