Skip to content

Commit 6ff3530

Browse files
authored
Merge pull request #312 from buildingSMART/IVS-796-allowlisting-doc
Allowlisting docs (IVS-796)
2 parents aa9f7b9 + 01ee348 commit 6ff3530

5 files changed

Lines changed: 35 additions & 14 deletions

File tree

.github/workflows/build-and-deploy-docs.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
name: "Build docs with Sphinx and deploy to Github Pages"
22

3-
on:
3+
on:
44
push:
5-
branches: docs/gh-pages
5+
branches:
6+
- development
7+
paths:
8+
- 'docs/**'
9+
workflow_dispatch:
610

711
jobs:
812
build_and_deploy:

.github/workflows/build-docs.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
name: "Build docs with Sphinx"
22

3-
on:
3+
on:
44
pull_request:
5-
branches: docs/gh-pages
5+
branches:
6+
- development
7+
paths:
8+
- 'docs/**'
69

710
jobs:
811
build_and_deploy:

docs/dev/api_quickstart.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ The preview of the Validation Service API is available at `https://dev.validate.
66
## Documentation
77

88
Auto-generated documentation is available in both
9-
[Swagger](https://dev.validate.buildingsmart.org/api/swagger-ui)
9+
[Swagger](https://dev.validate.buildingsmart.org/api/v1/swagger-ui)
1010
and
11-
[Redocly](https://dev.validate.buildingsmart.org/api/redoc)
11+
[Redocly](https://dev.validate.buildingsmart.org/api/v1/redoc)
1212
formats.
1313

1414
## Auth token
@@ -23,21 +23,21 @@ You can use this token either as a Bearer token or use it as the password in com
2323
1. Sample to show difference between Token vs. Basic authentication
2424

2525
``` shell
26-
curl -X GET --location 'https://dev.validate.buildingsmart.org/api/validationrequest/' --header 'Authorization: Token <TOKEN>'
26+
curl -X GET --location 'https://dev.validate.buildingsmart.org/api/v1/validationrequest' --header 'Authorization: Token <TOKEN>'
2727
```
2828

2929
-or-
3030

3131
```shell
32-
curl -X GET --location 'https://dev.validate.buildingsmart.org/api/validationrequest/' --header 'Authorization: Basic <HASH>'
32+
curl -X GET --location 'https://dev.validate.buildingsmart.org/api/v1/validationrequest' --header 'Authorization: Basic <HASH>'
3333
```
3434

3535
where `<HASH>` is the Base64-encoded email and token as password, separated by a colon, eg. base64(johndoe@gmail.com:abcdefgh12345)
3636

3737
2. Submit a POST request to the `/validationrequest` endpoint to initiate a new Validation Request (requires a file name and the file contents):
3838

3939
```shell
40-
curl -X POST --location 'https://dev.validate.buildingsmart.org/api/validationrequest/' \
40+
curl -X POST --location 'https://dev.validate.buildingsmart.org/api/v1/validationrequest' \
4141
4242
--header 'Authorization: Token <TOKEN>' \
4343
@@ -51,23 +51,23 @@ You can use this token either as a Bearer token or use it as the password in com
5151
3. Fetch details of a single ValidationRequest via a GET request to the `/validationrequest` endpoint
5252

5353
```shell
54-
curl -X GET --location 'https://dev.validate.buildingsmart.org/api/validationrequest/r767775526' --header 'Authorization: Token <TOKEN>'
54+
curl -X GET --location 'https://dev.validate.buildingsmart.org/api/v1/validationrequest/r767775526' --header 'Authorization: Token <TOKEN>'
5555
```
5656

5757
4. Fetch details of all ValidationRequests via a GET request to the `/validationrequest` endpoint
5858

5959
```shell
60-
curl -X GET --location 'https://dev.validate.buildingsmart.org/api/validationrequest/' --header 'Authorization: Token <TOKEN>'
60+
curl -X GET --location 'https://dev.validate.buildingsmart.org/api/v1/validationrequest' --header 'Authorization: Token <TOKEN>'
6161
```
6262

6363
5. Fetch all ValidationTasks for two ValidationRequests via a GET request to the `/validationtask` endpoint
6464

6565
```shell
66-
curl -X GET --location 'https://dev.validate.buildingsmart.org/api/validationtask/?request_public_id=r75257132,r383446691' --header 'Authorization: Token <TOKEN>'
66+
curl -X GET --location 'https://dev.validate.buildingsmart.org/api/v1/validationtask?request_public_id=r75257132,r383446691' --header 'Authorization: Token <TOKEN>'
6767
```
6868

6969
6. Fetch all the outcomes of a single ValidationRequest via a GET request to the `/validationoutcome` endpoint
7070

7171
```shell
72-
curl -X GET --location 'https://dev.validate.buildingsmart.org/api/validationoutcome/?request_public_id=r75257132' --header 'Authorization: Token <TOKEN>'
72+
curl -X GET --location 'https://dev.validate.buildingsmart.org/api/v1/validationoutcome?request_public_id=r75257132' --header 'Authorization: Token <TOKEN>'
7373
```

docs/dev/validate_readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Application Structure
32

43
## System Architecture

docs/ref/index.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,21 @@ Typically, this audience is interested in software certification as well.
2020
:relative-images:
2121
```
2222

23+
## Allowlisting
24+
25+
IFC schema definitions occasionally include typos or other minor incorrections.
26+
For example, if a vendor has implemented IFC export capabilities using the correct spelling,
27+
the strict checking of the Validation Service will return an error because there is not an exact match with the schema definition.
28+
29+
For this reason, an allowlist capability has been built in to the platform so that
30+
implementers are not unfairly penalized for an error that originates in the schema definition,
31+
not their implementation.
32+
33+
This capability runs as a post-processing step after the validation process has completed.
34+
For validation outcomes returning more than 10 instances, the allowlisting is only applied to the first 10.
35+
This is considered acceptable as it can only ever result in a false positive (green result displayed on the scoreboard)
36+
and never a false negative (unfair red result displayed on the scoreboard).
37+
2338
## Additional Information for Normative Rules
2439

2540
Occasionally, the Validation Service team will receive inquiries regarding a specific rule that requires

0 commit comments

Comments
 (0)