Skip to content

Commit 1f7b006

Browse files
committed
review
1 parent 0b28235 commit 1f7b006

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

Makefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@ publish: clean
3232
cp build/immunisation-fhir-api.json sandbox/
3333
cp -r specification sandbox/specification
3434

35-
#Creates a versioned, minified OAS spec in JSON for sending to APIM
35+
#Creates a minified OAS spec in JSON for sending to APIM
3636
oas: publish
37-
rm -f specification/immunisation-fhir-api.oas.json
38-
( cd utilities/scripts && python -m set_version < ../../build/immunisation-fhir-api.json | jq -c > ../../specification/immunisation-fhir-api.oas.json )
39-
chmod -w specification/immunisation-fhir-api.oas.json
37+
mkdir -p oas
38+
rm -f specification/immunisation-fhir-api.json
39+
jq -c . build/immunisation-fhir-api.json > oas/immunisation-fhir-api.json
40+
chmod -w oas/immunisation-fhir-api.json
4041

4142
#Runs build proxy script
4243
build-proxy:

README.specification.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ There are `make` commands that alias some of this functionality:
5656
- `lint` -- Lints the spec and code
5757
- `publish` -- Outputs the specification as a **single** JSON file into the `build/` directory
5858

59-
Note: the npm scripts are no longer based on Speccy.
60-
6159
### Modifying the OAS file
6260

6361
Note that the master OAS file is now the **YAML** version, as it is far easier to maintain than the JSON.
@@ -68,12 +66,9 @@ To review your modifications, use Swagger Editor (https://editor.swagger.io).
6866

6967
Note that this is currently a **manual** process.
7068

71-
After modifying the OAS YAML file, run `make oas` on your local machine. This will output the specification into `specification/immunisation-fhir-api.oas.json`. This is a **minified, versioned** JSON file suitable for sending to APIM
69+
After modifying the OAS YAML file, run `make oas` on your local machine. This will output the specification into `oas/immunisation-fhir-api.json`. This is a **minified** JSON file suitable for sending to APIM
7270
for uploading to the pubic website.
7371

74-
Please push the minified JSON file to GitHub to along with the YAML file to keep the two in sync, and so that the JSON file can be
75-
re-submitted to APIM without re-processing if need be.
76-
7772
### Testing
7873

7974
Each API and team is unique. We encourage you to use a `test/` folder in the root of the project, and use whatever testing frameworks or apps your team feels comfortable with. It is important that the URL your test points to be configurable. We have included some stubs in the Makefile for running tests.

specification/immunisation-fhir-api.oas.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)