Skip to content
This repository was archived by the owner on Apr 13, 2023. It is now read-only.

Commit 68ad61d

Browse files
authored
feat: bump routing and interface version to use validators (#208)
1 parent 57c3b38 commit 68ad61d

File tree

3 files changed

+20
-19
lines changed

3 files changed

+20
-19
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
"aws-sdk": "^2.785.0",
3636
"axios": "^0.21.1",
3737
"fhir-works-on-aws-authz-rbac": "4.1.1",
38-
"fhir-works-on-aws-interface": "7.1.0",
38+
"fhir-works-on-aws-interface": "8.0.0",
3939
"fhir-works-on-aws-persistence-ddb": "3.2.1",
40-
"fhir-works-on-aws-routing": "4.0.3",
40+
"fhir-works-on-aws-routing": "5.0.0",
4141
"fhir-works-on-aws-search-es": "2.1.0",
4242
"serverless-http": "^2.3.1"
4343
},

src/config.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
S3DataService,
1414
DynamoDbUtil,
1515
} from 'fhir-works-on-aws-persistence-ddb';
16+
import JsonSchemaValidator from 'fhir-works-on-aws-routing/lib/router/validation/jsonSchemaValidator';
1617
import RBACRules from './RBACRules';
1718

1819
const { IS_OFFLINE } = process.env;
@@ -71,7 +72,7 @@ export const fhirConfig: FhirConfig = {
7172
// Unused at this point
7273
level: 'error',
7374
},
74-
75+
validators: [new JsonSchemaValidator(fhirVersion)],
7576
profile: {
7677
systemOperations: ['transaction'],
7778
bundle: dynamoDbBundleService,

yarn.lock

+16-16
Original file line numberDiff line numberDiff line change
@@ -3866,16 +3866,16 @@ [email protected]:
38663866
jsonwebtoken "^8.5.1"
38673867
lodash "^4.17.20"
38683868

3869-
3869+
[email protected], fhir-works-on-aws-interface@^8.0.0:
3870+
version "8.0.0"
3871+
resolved "https://registry.yarnpkg.com/fhir-works-on-aws-interface/-/fhir-works-on-aws-interface-8.0.0.tgz#ebf0c23ea3aec85284345d3c3a2b67535c8e8afa"
3872+
integrity sha512-fZNLyZNPkyw/M4vcuFtppG/1mdcxKBhUlPb3CqKQCRmiZnt8qCTYohDuPDgDvGKtrA0lYggnfwZ/dxgJOuy7WQ==
3873+
3874+
fhir-works-on-aws-interface@^7.0.0, fhir-works-on-aws-interface@^7.0.1, fhir-works-on-aws-interface@^7.1.0:
38703875
version "7.1.0"
38713876
resolved "https://registry.yarnpkg.com/fhir-works-on-aws-interface/-/fhir-works-on-aws-interface-7.1.0.tgz#74ec69861b9909b9d14925085a901162def8ad6c"
38723877
integrity sha512-0Tz0ZXycp3vnKSyjnPO94rKJ7Qtz4JWLy83HpB1+qdGaAxzGaMVyW7w3vC3fkPmqOIPKxVl96pU/tXS7/Q9J8g==
38733878

3874-
fhir-works-on-aws-interface@^7.0.0, fhir-works-on-aws-interface@^7.0.1:
3875-
version "7.0.1"
3876-
resolved "https://registry.yarnpkg.com/fhir-works-on-aws-interface/-/fhir-works-on-aws-interface-7.0.1.tgz#f5fd41ae218d77c6bdc54452c3102a4990c5e4bc"
3877-
integrity sha512-Ax3yBruz5eeVaBxtEuLQQYdqEIDfqK6nfAT2iWUG7Ky9Warja/3Y4tAIYdiBhYaQ4anFQgz9nyYFQTQUH0JyLQ==
3878-
38793879
38803880
version "3.2.1"
38813881
resolved "https://registry.yarnpkg.com/fhir-works-on-aws-persistence-ddb/-/fhir-works-on-aws-persistence-ddb-3.2.1.tgz#d659c53839a3cb7820761ba87c6a8257436782d5"
@@ -3893,34 +3893,34 @@ [email protected]:
38933893
promise.allsettled "^1.0.2"
38943894
uuid "^3.4.0"
38953895

3896-
fhir-works-on-aws-routing@4.0.3:
3897-
version "4.0.3"
3898-
resolved "https://registry.yarnpkg.com/fhir-works-on-aws-routing/-/fhir-works-on-aws-routing-4.0.3.tgz#c92013372b595a16c74d9d601e1948a3f66d4a98"
3899-
integrity sha512-M4QEmGp3LxFLk5tht2CBBiXfIJruwRYmqU0ScAQw7OYgiEQQBjpykL/7wC+DGYtCyCzKL/r/ipkU3yKpC97eCA==
3896+
fhir-works-on-aws-routing@5.0.0:
3897+
version "5.0.0"
3898+
resolved "https://registry.yarnpkg.com/fhir-works-on-aws-routing/-/fhir-works-on-aws-routing-5.0.0.tgz#cf416528bae90bb8318737f2287361e0b7a035cf"
3899+
integrity sha512-Ai+PBzeEq1gMVNQxSEVHBW3ezaXaUYwFIFbZLGdIYby9wEcR75tZzA4fWyrssGxDzMQIDrOSYGVQcNEnbRFd7w==
39003900
dependencies:
39013901
"@types/cors" "^2.8.7"
39023902
"@types/express-serve-static-core" "^4.17.2"
39033903
ajv "^6.11.0"
39043904
cors "^2.8.5"
39053905
errorhandler "^1.5.1"
39063906
express "^4.17.1"
3907-
fhir-works-on-aws-interface "^7.0.1"
3907+
fhir-works-on-aws-interface "^8.0.0"
39083908
flat "^5.0.0"
39093909
http-errors "^1.8.0"
39103910
lodash "^4.17.15"
39113911
mime-types "^2.1.26"
39123912
serverless-http "^2.3.1"
39133913
uuid "^3.4.0"
39143914

3915-
fhir-works-on-aws-search-es@2.0.1:
3916-
version "2.0.1"
3917-
resolved "https://registry.yarnpkg.com/fhir-works-on-aws-search-es/-/fhir-works-on-aws-search-es-2.0.1.tgz#21aae517bc00fc2c0151406afdbe4d313c9c57da"
3918-
integrity sha512-e1dcoArjac65xF1AedSl1vpQ+vyBMZ03cLlB4lCBggdoS64IEZl+Cs2guYS6PiTvc/XGGbNYje5/J8TP+xMjNQ==
3915+
fhir-works-on-aws-search-es@2.1.0:
3916+
version "2.1.0"
3917+
resolved "https://registry.yarnpkg.com/fhir-works-on-aws-search-es/-/fhir-works-on-aws-search-es-2.1.0.tgz#2b3b00563f902cca81987ce9d55f2468a0ae7e46"
3918+
integrity sha512-2dHfKfXnOWuGbK8m9hgclGO4WIMxZ9sWCuoNCF/XQGPU+1InIfTd+FWiuSxsEQmsugW62ilcZbaSZTst+WbZ9Q==
39193919
dependencies:
39203920
"@elastic/elasticsearch" "7"
39213921
aws-elasticsearch-connector "^8.2.0"
39223922
aws-sdk "^2.610.0"
3923-
fhir-works-on-aws-interface "^7.0.1"
3923+
fhir-works-on-aws-interface "^7.1.0"
39243924
lodash "^4.17.20"
39253925
nearley "^2.20.0"
39263926

0 commit comments

Comments
 (0)