Skip to content

Commit 6eb4759

Browse files
committed
canalisations
1 parent 1d07444 commit 6eb4759

14 files changed

Lines changed: 441 additions & 648 deletions

File tree

.env

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ VALIDATOR_PATH=%kernel.project_dir%/bin/validator-cli.jar
2020
VALIDATOR_JAVA_OPTS='-Xms256m -Xmx2g'
2121
DATA_DIR=%kernel.project_dir%/var/data
2222

23+
#---------------------------------------------
24+
# GPF Entrepot
25+
#---------------------------------------------
26+
API_URL=https://validtri.mut-dev.ign.fr/api/validations/
27+
2328
#---------------------------------------------
2429
# docker defaults
2530
#---------------------------------------------

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"doctrine/orm": "^2.7",
1717
"jms/serializer-bundle": "^3.5",
1818
"justinrainbow/json-schema": "^5.2",
19-
"nelmio/cors-bundle": "^2.1",
19+
"nelmio/cors-bundle": "^2.5",
2020
"symfony/apache-pack": "^1.0",
2121
"symfony/asset": "5.4.*",
2222
"symfony/console": "5.4.*",

config/packages/nelmio_cors.yaml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,15 @@ nelmio_cors:
1010
origin_regex: false
1111
forced_allow_origin_value: ~
1212
paths:
13-
"^/api/":
14-
allow_origin: ["%env(resolve:CORS_ALLOW_ORIGIN)%"]
15-
allow_headers: ["Content-Type", "Authorization"]
16-
allow_methods: ["GET", "OPTIONS", "POST", "PUT", "PATCH", "DELETE"]
13+
'^/api/':
14+
allow_origin: ['%env(resolve:CORS_ALLOW_ORIGIN)%']
15+
allow_headers: ['Content-Type', 'Authorization']
16+
allow_methods: ['GET', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE']
1717
max_age: 3600
18+
'^/':
19+
origin_regex: true
20+
allow_origin: ['^http://localhost:[0-9]+']
21+
allow_headers: ['X-Custom-Auth']
22+
allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
23+
max_age: 3600
24+
hosts: ['^api\.']

config/packages/validator.yaml

100755100644
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,8 @@ framework:
66
# For instance, basic validation constraints will be inferred from Doctrine's metadata.
77
#auto_mapping:
88
# App\Entity\: []
9+
10+
when@test:
11+
framework:
12+
validation:
13+
not_compromised_password: false

docs/specs/schema/validator-arguments.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@
9191
"type": "boolean",
9292
"description": "geometry simplification method",
9393
"example": true
94+
},
95+
"keepData": {
96+
"type": "boolean",
97+
"description": "whether to keep source and validation data",
98+
"example": true
9499
}
95100
},
96101
"additionalProperties": false

public/vendor/validator-api-client/validator-client.js

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

0 commit comments

Comments
 (0)