Skip to content

Commit 4cb362d

Browse files
author
regula-bot
committed
Merge remote-tracking branch 'origin/stable'
2 parents 36bcc65 + 7090f7e commit 4cb362d

File tree

296 files changed

+12749
-5663
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

296 files changed

+12749
-5663
lines changed

.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc.cjs

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/npm-publish-prerelease.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/npm-publish.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/run-smoke-test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,3 @@ jobs:
2222
working-directory: ./examples/basic/
2323
env:
2424
API_BASE_PATH: "https://nightly-api.regulaforensics.com"
25-
TEST_LICENSE: ${{secrets.TEST_LICENSE}}

.github/workflows/sast.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env:
1616
# List of paths (space separated) to ignore
1717
# Supports PATTERNS
1818
# EXCLUDE_PATHS: 'foo bar/baz file.txt dir/*.yml'
19-
EXCLUDE_PATHS: 'examples'
19+
EXCLUDE_PATHS: 'examples generator-templates'
2020
# List of rules (space separated) to ignore
2121
# EXCLUDE_RULES: 'generic.secrets.security.detected-aws-account-id.detected-aws-account-id'
2222
# See https://github.com/semgrep/semgrep-rules for rules registry

dev.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,27 @@
11
# Development
22

3-
Js client is written using typescript, mainly generated from [openapi spec](https://github.com/regulaforensics/DocumentReader-api-openapi).
4-
Openapi-generator output used as implementation base(see packages `/src/api`, `/scr/models`).
5-
All custom logic, on top of generated files, should be places in `/src/ext` folder.
3+
Models generation based on [openapi spec](https://github.com/regulaforensics/DocumentReader-api-openapi).
4+
5+
## Generation
66

77
To regenerate models from openapi definition,
8-
clone [latest open api definitions](https://github.com/regulaforensics/DocumentReader-api-openapi)
9-
and use next command from the project root:
8+
clone [latest open api definitions](https://github.com/regulaforensics/DocumentReader-api-openapi)
9+
and use next command from the project root.
1010
```bash
1111
./update-models.sh
1212
```
13+
14+
## Generator configuration Features
15+
16+
1. The generator treats the discriminator value as a string,
17+
but in our case it's numbers. To solve this problem, changes
18+
have been made to the modelOneOf.mustache template.
19+
20+
## Problem solving
21+
22+
To solve new problems, use the generator
23+
settings ([typescript](https://github.com/OpenAPITools/openapi-generator/blob/master/docs/generators/typescript-axios.md),
24+
[common](https://github.com/OpenAPITools/openapi-generator/blob/master/docs/customization.md))
25+
and [templates](https://github.com/OpenAPITools/openapi-generator/tree/master/modules/openapi-generator/src/main/resources/typescript-axios).
26+
27+
**Do not edit the generated files! They will be overwritten after generation!**

eslint.config.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import globals from 'globals';
2+
import pluginJs from '@eslint/js';
3+
import tseslint from 'typescript-eslint';
4+
import prettierRecommended from 'eslint-plugin-prettier/recommended';
5+
6+
export default [
7+
{
8+
files: ['**/*.{js,mjs,cjs,ts}'],
9+
},
10+
{
11+
languageOptions: {
12+
globals: { ...globals.browser, ...globals.node },
13+
},
14+
},
15+
pluginJs.configs.recommended,
16+
...tseslint.configs.recommended,
17+
prettierRecommended,
18+
{
19+
ignores: ['dist/*', 'lib/*', '!.*'],
20+
},
21+
{
22+
rules: {
23+
'@typescript-eslint/no-explicit-any': 'off',
24+
'@typescript-eslint/no-unused-vars': 'off',
25+
},
26+
},
27+
];

examples/auth/client/encrypted-rcl-example.js

Lines changed: 0 additions & 89 deletions
This file was deleted.

examples/auth/client/encrypted-rcl.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)