Skip to content

Commit

Permalink
VL-274 Change pattern match docIdx field (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
datalek authored Jun 19, 2023
1 parent 9fbd1d5 commit 89c313f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion openapi/bundled-api-external-b2b-pa-v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1647,7 +1647,7 @@ components:
utilizzabili in un nome file.
docIdx:
maxLength: 3
pattern: ^\d+$
pattern: ^\\d+$
type: string
description: Indice del documento partendo da 0.
NotificationFeePolicy:
Expand Down
3 changes: 2 additions & 1 deletion openapi/how-to-generate-the-bundled-openapi-definition.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
```
6. Replace the reference of errors from `#/components/schemas/schemas-ProblemError` to `#/components/schemas/ProblemError`
7. Remove `schemas-ProblemError`.
8. Done
8. On `NotificationDocument.docIdx` replace `pattern: ^\d+$` with `pattern: ^\\d+$` due to [string pattern definition bug](https://github.com/pagopa/openapi-codegen-ts/tree/v13.0.1#about-string-pattern-definition).
9. Done

```
# Run the following command form ./openapi
Expand Down
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"license": "SEE LICENSE IN LICENSE",
"devDependencies": {
"@pagopa/eslint-config": "^3.0.0",
"@pagopa/openapi-codegen-ts": "^12.1.2",
"@pagopa/openapi-codegen-ts": "^13.0.1",
"@types/express": "^4.17.15",
"@types/jest": "^29.2.6",
"@types/node": "^18.11.18",
Expand Down

0 comments on commit 89c313f

Please sign in to comment.