File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed
plugins/orchestrator-common Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "$schema" : " ./node_modules/@openapitools/openapi-generator-cli/config.schema.json" ,
2
+ "$schema" : " ../.. /node_modules/@openapitools/openapi-generator-cli/config.schema.json" ,
3
3
"spaces" : 2 ,
4
4
"generator-cli" : {
5
5
"version" : " 7.3.0"
Original file line number Diff line number Diff line change 24
24
rm ./src/openapi/openapi.json
25
25
yarn openapi:prettier:fix
26
26
NEW_SHA=$( openapi_checksum)
27
- openapi_update ${NEW_SHA}
27
+ openapi_update " ${NEW_SHA} "
28
28
}
29
29
30
- openapi_checksum (){
31
- cat ${DEFINITION_FILE} ${SCHEMA_FILE} ${OPENAPI_SPEC_FILE} | sha1sum | awk ' {print $1}' | tr -d ' [:space:]'
30
+ openapi_checksum () {
31
+ CONCATENATED_CONTENT=$( cat ${DEFINITION_FILE} ${SCHEMA_FILE} ${OPENAPI_SPEC_FILE} )
32
+ node -e $' console.log(crypto.createHash("sha1").update(`$CONCATENATED_CONTENT`).digest("hex"))'
32
33
}
33
34
34
35
openapi_update () {
Original file line number Diff line number Diff line change 1
- d82937d6ce2c454759c0aad81c0d8206daa8e425
1
+ dd90834d9e4e6e4dbf3790a913378063fda5b25a
You can’t perform that action at this time.
0 commit comments