Skip to content

Commit cb577a9

Browse files
authored
Merge pull request #67 from advanced-rest-client/fix/-W-17309546/Incorrect-formatting-of-values-with-leading-zeros-in-processed-data
feat(W-17309546): Incorrect formatting of values with leading zeros in processed data
2 parents a1a0aaf + 94e729b commit cb577a9

File tree

9 files changed

+10317
-3645
lines changed

9 files changed

+10317
-3645
lines changed

.github/workflows/deployment.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,15 @@ jobs:
1919
- uses: actions/checkout@v2
2020
- uses: actions/setup-node@v1
2121
with:
22-
node-version: 14
23-
- uses: microsoft/playwright-github-action@v1
22+
node-version: 16
2423
- uses: actions/cache@v1
2524
with:
2625
path: ~/.npm
2726
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
2827
restore-keys: |
2928
${{ runner.os }}-node-
29+
- name: Install Playwright dependencies
30+
run: npx playwright install --with-deps
3031
- name: Install dependencies
3132
run: npm ci
3233
- name: Run tests
@@ -38,22 +39,24 @@ jobs:
3839
- uses: actions/checkout@v2
3940
- uses: actions/setup-node@v1
4041
with:
41-
node-version: 14
42+
node-version: 16
4243
- uses: microsoft/playwright-github-action@v1
4344
- uses: actions/cache@v1
4445
with:
4546
path: ~/.npm
4647
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
4748
restore-keys: |
4849
${{ runner.os }}-node-
50+
- name: Install Playwright dependencies
51+
run: npx playwright install --with-deps
4952
- name: Install dependencies
5053
run: npm ci
5154
- name: Run tests
5255
run: npm test
5356
tag:
5457
name: "Publishing release"
5558
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
56-
needs:
59+
needs:
5760
- test_linux
5861
- test_win
5962
runs-on: ubuntu-latest
@@ -64,7 +67,7 @@ jobs:
6467
fetch-depth: 0
6568
- uses: actions/setup-node@v2
6669
with:
67-
node-version: '14.x'
70+
node-version: '16.x'
6871
registry-url: 'https://registry.npmjs.org'
6972
- uses: actions/cache@v1
7073
with:

demo/W-17309546/W-17309546.raml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#%RAML 1.0
2+
title: test_for_support
3+
mediaType: application/json
4+
5+
6+
7+
types:
8+
User:
9+
type: object
10+
properties:
11+
id: integer
12+
name: string
13+
email: string
14+
postal_code: string
15+
companyDateEntry: date-only
16+
17+
/test:
18+
get:
19+
description: Obtenir la liste des utilisateurs
20+
responses:
21+
200:
22+
body:
23+
type: User[]
24+
example: !include /examples/employees/user-examples.raml
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#%RAML 1.0 NamedExample
2+
value:
3+
- id: 1
4+
name: Alice Dupont
5+
email: alice.dupont@example.com
6+
companyDateEntry: 2003-05-14
7+
postal_code: "075001"
8+
- id: 2
9+
name: Bob Martin
10+
email: bob.martin@example.com
11+
companyDateEntry: 2004-05-04
12+
postal_code: "169002"
13+
- id: 3
14+
name: Charlie Durand
15+
email: charlie.durand@example.com
16+
companyDateEntry: 2003-08-11
17+
postal_code: "013003"

demo/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ class ComponentDemo extends ApiDemoPage {
124124
['APIC-655', 'APIC-655'],
125125
['xml-api', 'xml-api'],
126126
['W-11843862', 'W-11843862'],
127+
['W-17309546', 'W-17309546'],
127128
['v4_0_0_api_specs', 'v4_0_0_api_specs']
128129
].map(
129130
([file, label]) => html`

demo/model.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ files.set('SE-22063/SE-22063.raml', { type: 'RAML 1.0' });
2222
files.set('APIC-332/APIC-332.raml', { type: 'RAML 1.0' });
2323
files.set('APIC-690/APIC-690.raml', { type: 'RAML 1.0' });
2424
files.set('10732397/10732397.raml', { type: 'RAML 1.0' });
25+
files.set('W-17309546/W-17309546.raml', { type: 'RAML 1.0' });
2526
files.set('oas-3-api/oas-3-api.yaml', { type: 'OAS 3.0', mime: 'application/yaml' });
2627
files.set('allof-types/allof-types.yaml', { type: 'OAS 3.0', mime: 'application/yaml' });
2728
files.set('APIC-679/APIC-679.yaml', { type: 'OAS 3.0', mime: 'application/yaml' });

0 commit comments

Comments
 (0)