Skip to content

Commit 86bee72

Browse files
MicheleBellizziNTTMicheleBellizziNTT
andauthored
Aggiornamento Versione 2.3 (#164)
* aggiornamento Versione 2.3 * test rifatti * test modificati --------- Co-authored-by: MicheleBellizziNTT <MicheleGiorgio.Bellizzi@nttdata.com>
1 parent 7f8ce81 commit 86bee72

File tree

42 files changed

+7826
-136
lines changed

Some content is hidden

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

42 files changed

+7826
-136
lines changed

docs/postman_collection/PagoPA_v2.3_postman_collection.json

Lines changed: 1181 additions & 0 deletions
Large diffs are not rendered by default.

openapi/.swagger-codegen-ignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Swagger Codegen Ignore
2+
# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md

openapi/.swagger-codegen/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0.35

openapi/README.md

Whitespace-only changes.

openapi/bundled-api-external-b2b-pa-v2-3.yaml

Lines changed: 6496 additions & 0 deletions
Large diffs are not rendered by default.

openapi/how-to-generate-the-bundled-openapi-definition.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
```
1111
curl https://repo1.maven.org/maven2/io/swagger/codegen/v3/swagger-codegen-cli/3.0.35/swagger-codegen-cli-3.0.35.jar -O
1212
```
13-
3. Run the command to generate the 'bundled-api-external-b2b-pa-v2-1.yaml'
13+
3. Run the command to generate the 'bundled-api-external-b2b-pa-v2-3.yaml'
1414
```
15-
java -jar swagger-codegen-cli-3.0.35.jar generate -l openapi-yaml -i https://raw.githubusercontent.com/pagopa/pn-delivery/develop/docs/openapi/api-external-b2b-pa-bundle.yaml -o . -DoutputFile=bundled-api-external-b2b-pa-v2-1.yaml
15+
java -jar swagger-codegen-cli-3.0.35.jar generate -l openapi-yaml -i https://raw.githubusercontent.com/pagopa/pn-delivery/develop/docs/openapi/api-external-b2b-pa-bundle.yaml -o . -DoutputFile=bundled-api-external-b2b-pa-v2-3.yaml
1616
```
1717
3. Then do the modification as below to the generated file.
1818
4. Add to the `Problem` and `ProblemError` the `type: object` property
20.7 MB
Binary file not shown.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "pn-local-validator",
3-
"version": "2.1.3.1",
3+
"version": "2.3",
44
"description": "A system that emulates some features of Piattaforma Notifiche platform.",
55
"main": "dist/main.js",
66
"scripts": {
77
"generate": "npm run generate:api && npm run generate:pnapi",
8-
"generate:pnapi": "shx rm -rf ./src/generated/pnapi && shx mkdir -p ./src/generated/pnapi && gen-api-models --api-spec ./openapi/bundled-api-external-b2b-pa-v2-1.yaml --no-strict --out-dir ./src/generated/pnapi --request-types --response-decoders",
8+
"generate:pnapi": "shx rm -rf ./src/generated/pnapi && shx mkdir -p ./src/generated/pnapi && gen-api-models --api-spec ./openapi/bundled-api-external-b2b-pa-v2-3.yaml --no-strict --out-dir ./src/generated/pnapi --request-types --response-decoders",
99
"generate:api": "shx rm -rf ./src/generated/api && shx mkdir -p ./src/generated/api && gen-api-models --api-spec ./openapi/internal.yaml --no-strict --out-dir ./src/generated/api",
1010
"clean": "tsc --build --clean",
1111
"postcompile": "shx cp -R ./src/adapters/http/download/exampledocuments ./dist/adapters/http/download/exampledocuments",

src/adapters/http/checkNotificationStatus/__tests__/router.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe('Notification Status Router', () => {
2929

3030
it('should return a 400 response with some data', async () => {
3131
const response = await supertest(app)
32-
.get('/api/delivery/v2.1/requests')
32+
.get('/api/delivery/v2.3/requests')
3333
.query({
3434
notificationRequestId: '123',
3535
});

0 commit comments

Comments
 (0)