Skip to content
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .depcheckrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ ignores:
# Include an explanation why the package is ignored
- '@babel/*' # Used in babel.config.js and babel.config.jest.js
- '@types/react-dom' # Used in src/index.jsx
- anypoint-cli-exchange-plugin # CLI tool executed via execSync in scripts, not imported
- anypoint-cli-v4 # CLI tool executed via execSync in scripts, not imported
- jest-environment-jsdom-sixteen # Used by test:react script in package.json
- lib # Used in App.jsx, references local directory
- node-fetch # False positive - clientConfig.ts imports the type from @types/node-fetch
Expand Down
7 changes: 7 additions & 0 deletions Contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ $ yarn test

### Merging to `preview`

#### Update APIs:
Update the version file in `api-versions.txt` to the version you want to test or add a new API. Use the API version from your API release or branch build.

Alternatively, you can run `yarn updateApiVersion` to update the `api-versions.txt` file with the latest API version snapshots for the APIs listed in the file.

#### Update and Check SDK before merging:

Before merging any changes into `preview`, SDK generation must pass locally:

```
Expand Down
15 changes: 15 additions & 0 deletions api-versions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
shopper-baskets-oas-v1=1.9.0
shopper-baskets-oas-v2=2.1.0
shopper-consents-oas-v1=1.1.0
shopper-context-oas-v1=1.1.1
shopper-customers-oas-v1=1.1.1
shopper-experience-oas-v1=1.0.7
shopper-gift-certificates-oas-v1=1.0.26
shopper-login-oas-v1=1.39.41
shopper-orders-oas-v1=1.5.0
shopper-products-oas-v1=1.0.37
shopper-promotions-oas-v1=1.0.36
shopper-search-oas-v1=1.3.0
shopper-seo-oas-v1=1.0.13
shopper-stores-oas-v1=1.0.17
shopper-payments-oas-v1=1.2.0-master-b70
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think in future updates we can add better error handling for improper formatting of API name and version

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, this was only a draft

9 changes: 0 additions & 9 deletions apis/shopper-baskets-oas-1.9.0/.metadata.json

This file was deleted.

17 changes: 0 additions & 17 deletions apis/shopper-baskets-oas-2.1.0/.metadata.json

This file was deleted.

17 changes: 0 additions & 17 deletions apis/shopper-consents-oas-1.1.0/.metadata.json

This file was deleted.

17 changes: 0 additions & 17 deletions apis/shopper-context-oas-1.1.1/.metadata.json

This file was deleted.

17 changes: 0 additions & 17 deletions apis/shopper-customers-oas-1.1.1/.metadata.json

This file was deleted.

17 changes: 0 additions & 17 deletions apis/shopper-experience-oas-1.0.7/.metadata.json

This file was deleted.

17 changes: 0 additions & 17 deletions apis/shopper-gift-certificates-oas-1.0.26/.metadata.json

This file was deleted.

17 changes: 0 additions & 17 deletions apis/shopper-login-oas-1.39.41/.metadata.json

This file was deleted.

17 changes: 0 additions & 17 deletions apis/shopper-orders-oas-1.5.0/.metadata.json

This file was deleted.

12 changes: 12 additions & 0 deletions apis/shopper-payments-oas-1.2.0/exchange.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"main": "shopper-payments-oas-v1-public.yaml",
"name": "Shopper Payments OAS",
"groupId": "893f605e-10e2-423a-bdb4-f952f56eb6d8",
"assetId": "shopper-payments-oas",
"version": "1.2.0-master-b70",
"classifier": "oas",
"tags": [],
"descriptorVersion": "1.0.0",
"organizationId": "893f605e-10e2-423a-bdb4-f952f56eb6d8",
"apiVersion": "v1"
}
Loading
Loading