File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3+ # Set date variable for use in version
4+ printf -v date ' %(%Y.%m.%d)T'
5+
36# Add default servers to spec
47npx node-jq ' .servers = inputs.servers' cwms-swagger-raw.json scripts/spec-updates/servers.json |
58
9+ # Write version as genVer-todaysDate
10+ # This will be used until CDA itself exposes an official CalVer version
11+ npx node-jq --arg date " $date " --slurpfile root package.json ' .info.version = ($root[0].version + "-" + $date)' |
12+
613# Add BaseRatingMetadata to fix typing issues
714npx node-jq --slurpfile base scripts/spec-updates/BaseRatingMetadata.json ' .components.schemas.BaseRatingMetadata = $base[0].BaseRatingMetadata' |
815sed ' s/"\$ref": "#\/components\/schemas\/AbstractRatingMetadata"/"\$ref": "#\/components\/schemas\/BaseRatingMetadata"/g' |
You can’t perform that action at this time.
0 commit comments