Skip to content

Commit 2d048c9

Browse files
Clear values when undefined webApi is received (#23)
* fix: when webApi is undefined, clear view * chore(models): add APIC-711 spec * test: test empty view for library model * 4.6.2 * chore(deps): npm up * chore(deps): regenerate package-lock.json
1 parent e7d5060 commit 2d048c9

File tree

6 files changed

+2159
-2284
lines changed

6 files changed

+2159
-2284
lines changed

demo/APIC-711/APIC-711.raml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#%RAML 1.0 Library
2+
3+
types:
4+
StockBalance:
5+
description: Holder stock balance information.
6+
properties:
7+
sourceType:
8+
type:
9+
enum: [site]
10+
example: site
11+
items:
12+
type: StockLine[]
13+
description: Individual inventories.
14+
minItems: 1
15+
xml:
16+
wrapped: true
17+
name: item
18+
StockLine:
19+
type: object
20+
description: Stock line.
21+
properties:
22+
ssccNumber?:
23+
type: string
24+
description: Palet number
25+
example: P19227
26+
materialReference:
27+
type: string
28+
description: Product sku.
29+
example: CL54B
30+
variantId?:
31+
type: string
32+
description: Identification of product variant (or recipe)
33+
example: R0029
34+
batch?:
35+
type: string
36+
description: Batch number.
37+
example: BA02931
38+
quantity:
39+
type: number
40+
description: Product quantity to be despatched.
41+
example: 1

demo/apis.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@
1212
"async-api/async-api.yaml": "ASYNC 2.0",
1313
"exchange-experience-api/exchange-experience-api.raml": "RAML 0.8",
1414
"multiple-servers/multiple-servers.yaml": { "type": "OAS 3.0", "mime": "application/yaml" },
15-
"APIC-641/APIC-641.yaml": { "type": "OAS 3.0", "mime": "application/yaml" }
15+
"APIC-641/APIC-641.yaml": { "type": "OAS 3.0", "mime": "application/yaml" },
16+
"APIC-711/APIC-711.raml": "RAML 1.0"
1617
}

0 commit comments

Comments
 (0)