|
23 | 23 | * **rt - \*.yml** - files describing results types |
24 | 24 | * **p - \*.yml** - files describing endpoints |
25 | 25 |
|
26 | | - |
27 | 26 | ## Updating clients according to the current spec |
28 | 27 |
|
29 | | -To update clients, use `update clients` GitHub action. Specify title PR and press run. For each client **PR** with changes will be created. |
30 | | - |
31 | | -:warning: NOTE: Static typed clients, such as Java or C#, require adding all new **enums** to `update-models.sh` ENUM_MAPPINGS section. |
| 28 | +When changes are added, the `update clients` action is automatically triggered. For each client **PR** with changes will be created. |
32 | 29 |
|
33 | | -:warning: NOTE: For some clients generator produces not-valid client code. See `update-models.sh` for ad-hocks fixing generator issues. |
| 30 | +:warning: NOTE: Before working with a client, read `dev.md` which is available in each client repository. |
34 | 31 |
|
35 | | -:warning: NOTE: Do **not edit** generated code. Create wrappers, decorators, etc in ext folder. |
| 32 | +:warning: NOTE: Do **not edit** generated code. Create wrappers, decorators, etc. in ext folder. |
36 | 33 |
|
37 | | -:bulb: All clients have RawResultItem container that is used for deserialization for undescribed types. This container is a simple map/dict. |
| 34 | +:bulb: All clients have RawResultItem and AuthenticityCheckResultItem containers that are used for deserialization oneOf schemas. These containers are a simple map/dict. |
38 | 35 |
|
39 | 36 |
|
40 | 37 | ## Spec validation |
41 | | -``` |
42 | | -docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli validate --recommend -i /local/index.yml |
| 38 | + |
| 39 | +```bash |
| 40 | +docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli validate --recommend -i /local/index.yml |
43 | 41 | ``` |
44 | 42 |
|
45 | 43 | ## Building Redoc single page html documentation |
46 | 44 |
|
47 | | -Edit **rt.yml** - remove **components.schemas.ResultItem.discriminator** node |
48 | | - |
49 | | -Edit **rt-authenticity.yml** - remove **components.schemas.AuthenticityCheckResultItem.discriminator** |
50 | | - |
51 | | -Then run next command: |
52 | | -``` |
| 45 | +```bash |
53 | 46 | npx @redocly/cli build-docs index.yml -o=document-reader-static-doc.html |
54 | 47 | ``` |
55 | 48 |
|
56 | 49 | ## Bundle scheme to single .json file |
| 50 | + |
57 | 51 | ```bash |
58 | | -npx openapi-generator-cli generate -i index.yml -g openapi --skip-validate-spec |
| 52 | +npx @openapitools/openapi-generator-cli generate -i index.yml -g openapi --skip-validate-spec |
59 | 53 | ``` |
0 commit comments