Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(W-17309546): Incorrect formatting of values with leading zeros in processed data #67

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: alice.dupont@example.com
companyDateEntry: 2003-05-14
postal_code: "075001"
- id: 2
name: Bob Martin
email: bob.martin@example.com
companyDateEntry: 2004-05-04
postal_code: "169002"
- id: 3
name: Charlie Durand
email: charlie.durand@example.com
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
Loading