Skip to content

Commit

Permalink
Merge pull request #67 from advanced-rest-client/fix/-W-17309546/Inco…
Browse files Browse the repository at this point in the history
…rrect-formatting-of-values-with-leading-zeros-in-processed-data

feat(W-17309546):  Incorrect formatting of values with leading zeros in processed data
  • Loading branch information
alexpmule authored Dec 9, 2024
2 parents a1a0aaf + 94e729b commit cb577a9
Show file tree
Hide file tree
Showing 9 changed files with 10,317 additions and 3,645 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
- uses: microsoft/playwright-github-action@v1
node-version: 16
- uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Playwright dependencies
run: npx playwright install --with-deps
- name: Install dependencies
run: npm ci
- name: Run tests
Expand All @@ -38,22 +39,24 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
node-version: 16
- uses: microsoft/playwright-github-action@v1
- uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Playwright dependencies
run: npx playwright install --with-deps
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
tag:
name: "Publishing release"
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
needs:
needs:
- test_linux
- test_win
runs-on: ubuntu-latest
Expand All @@ -64,7 +67,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: '14.x'
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- uses: actions/cache@v1
with:
Expand Down
24 changes: 24 additions & 0 deletions demo/W-17309546/W-17309546.raml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#%RAML 1.0
title: test_for_support
mediaType: application/json



types:
User:
type: object
properties:
id: integer
name: string
email: string
postal_code: string
companyDateEntry: date-only

/test:
get:
description: Obtenir la liste des utilisateurs
responses:
200:
body:
type: User[]
example: !include /examples/employees/user-examples.raml
17 changes: 17 additions & 0 deletions demo/W-17309546/examples/employees/user-examples.raml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#%RAML 1.0 NamedExample
value:
- id: 1
name: Alice Dupont
email: [email protected]
companyDateEntry: 2003-05-14
postal_code: "075001"
- id: 2
name: Bob Martin
email: [email protected]
companyDateEntry: 2004-05-04
postal_code: "169002"
- id: 3
name: Charlie Durand
email: [email protected]
companyDateEntry: 2003-08-11
postal_code: "013003"
1 change: 1 addition & 0 deletions demo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ class ComponentDemo extends ApiDemoPage {
['APIC-655', 'APIC-655'],
['xml-api', 'xml-api'],
['W-11843862', 'W-11843862'],
['W-17309546', 'W-17309546'],
['v4_0_0_api_specs', 'v4_0_0_api_specs']
].map(
([file, label]) => html`
Expand Down
1 change: 1 addition & 0 deletions demo/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ files.set('SE-22063/SE-22063.raml', { type: 'RAML 1.0' });
files.set('APIC-332/APIC-332.raml', { type: 'RAML 1.0' });
files.set('APIC-690/APIC-690.raml', { type: 'RAML 1.0' });
files.set('10732397/10732397.raml', { type: 'RAML 1.0' });
files.set('W-17309546/W-17309546.raml', { type: 'RAML 1.0' });
files.set('oas-3-api/oas-3-api.yaml', { type: 'OAS 3.0', mime: 'application/yaml' });
files.set('allof-types/allof-types.yaml', { type: 'OAS 3.0', mime: 'application/yaml' });
files.set('APIC-679/APIC-679.yaml', { type: 'OAS 3.0', mime: 'application/yaml' });
Expand Down
Loading

0 comments on commit cb577a9

Please sign in to comment.