Skip to content

Commit

Permalink
⚙️ Auto-génération des classes et des specs
Browse files Browse the repository at this point in the history
  • Loading branch information
issam71100 authored and github-actions[bot] committed Dec 27, 2024
1 parent d944532 commit 1d3690f
Show file tree
Hide file tree
Showing 133 changed files with 195 additions and 3,315 deletions.
42 changes: 42 additions & 0 deletions csv_parser/json_schema2xsd/src/main/resources/schemas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,210 +2,252 @@ schemas:
- automaticGeneration: Y
customExtendClass: null
customExtendPackage: null
file: model-technical.xlsx
header: Y
package: technical
perimeter: TECHNICAL
rootElement: technical
schema: TECHNICAL
sheet: TECHNICAL
subschema: N
xmlns: cisu:3.0:technical
- automaticGeneration: Y
customExtendClass: ContentMessage
customExtendPackage: com.hubsante.model.edxl
file: model-technical.xlsx
header: N
package: technical.noreq
perimeter: TECHNICAL_NOREQ
rootElement: technicalNoreq
schema: TECHNICAL_NOREQ
sheet: TECHNICAL
subschema: N
xmlns: cisu:3.0:technicalNoreq
- automaticGeneration: N
customExtendClass: null
customExtendPackage: null
file: model.xlsx
header: N
package: rcde
perimeter: 15-15
rootElement: distributionElement
schema: RC-DE
sheet: RC-DE
subschema: N
xmlns: null
- automaticGeneration: Y
customExtendClass: null
customExtendPackage: null
file: model.xlsx
header: Y
package: cisu
perimeter: 15-18
rootElement: createCase
schema: RC-EDA
sheet: RC-EDA
subschema: N
xmlns: cisu:3.0
- automaticGeneration: Y
customExtendClass: null
customExtendPackage: null
file: model.xlsx
header: Y
package: health
perimeter: 15-15
rootElement: createCaseHealth
schema: RS-EDA
sheet: RC-EDA
subschema: N
xmlns: cisu:3.0:createCaseHealth
- automaticGeneration: Y
customExtendClass: null
customExtendPackage: null
file: model.xlsx
header: Y
package: health
perimeter: 15-MAJ
rootElement: createCaseHealthUpdate
schema: RS-EDA-MAJ
sheet: RC-EDA
subschema: Y
xmlns: cisu:3.0:createCaseHealthUpdate
- automaticGeneration: Y
customExtendClass: null
customExtendPackage: null
file: model.xlsx
header: Y
package: emsi
perimeter: 15-15
rootElement: emsi
schema: EMSI
sheet: EMSI
subschema: N
xmlns: cisu:3.0:emsi
- automaticGeneration: Y
customExtendClass: null
customExtendPackage: null
file: model.xlsx
header: Y
package: resources.info
perimeter: 15-15
rootElement: resourcesInfo
schema: RS-RI
sheet: RS-RI
subschema: N
xmlns: cisu:3.0:resourcesinfo
- automaticGeneration: Y
customExtendClass: null
customExtendPackage: null
file: model.xlsx
header: Y
package: resources.info
perimeter: 15-SMUR
rootElement: resourcesEngagement
schema: RS-ER
sheet: RS-RI
subschema: Y
xmlns: cisu:3.0:resourcesengagement
- automaticGeneration: Y
customExtendClass: null
customExtendPackage: null
file: model.xlsx
header: Y
package: resources.status
perimeter: 15-15
rootElement: resourcesStatus
schema: RS-SR
sheet: RS-SR
subschema: N
xmlns: cisu:3.0:resourcesstatus
- automaticGeneration: Y
customExtendClass: null
customExtendPackage: null
file: model.xlsx
header: Y
package: resources.request
perimeter: 15-15
rootElement: resourcesRequest
schema: RS-DR
sheet: RS-DR
subschema: N
xmlns: cisu:3.0:resourcesrequest
- automaticGeneration: Y
customExtendClass: null
customExtendPackage: null
file: model.xlsx
header: Y
package: resources.response
perimeter: 15-15
rootElement: resourcesResponse
schema: RS-RR
sheet: RS-RR
subschema: N
xmlns: cisu:3.0:resourcesresponse
- automaticGeneration: Y
customExtendClass: null
customExtendPackage: null
file: model.xlsx
header: Y
package: rpis
perimeter: 15-RPIS
rootElement: rpis
schema: RS-RPIS
sheet: RS-RPIS
subschema: N
xmlns: cisu:3.0:rpis
- automaticGeneration: Y
customExtendClass: null
customExtendPackage: null
file: model.xlsx
header: Y
package: interventionreport
perimeter: 15-SMUR
rootElement: interventionReport
schema: RS-BPV
sheet: RS-BPV
subschema: N
xmlns: cisu:3.0:interventionreport
- automaticGeneration: Y
customExtendClass: null
customExtendPackage: null
file: model.xlsx
header: Y
package: documentlink
perimeter: 15-SMUR
rootElement: documentLink
schema: RS-URL
sheet: RS-URL
subschema: N
xmlns: cisu:3.0:documentlink
- automaticGeneration: Y
customExtendClass: null
customExtendPackage: null
file: model.xlsx
header: Y
package: geolocation
perimeter: 15-15
rootElement: geoPositionsUpdate
schema: GEO-POS
sheet: GEO-POS
subschema: N
xmlns: cisu:3.0:geopositionsupdate
- automaticGeneration: Y
customExtendClass: null
customExtendPackage: null
file: model.xlsx
header: Y
package: geolocation
perimeter: 15-15
rootElement: geoResourcesRequest
schema: GEO-REQ
sheet: GEO-REQ
subschema: N
xmlns: cisu:3.0:georesourcesrequest
- automaticGeneration: Y
customExtendClass: null
customExtendPackage: null
file: model.xlsx
header: Y
package: geolocation
perimeter: 15-15
rootElement: geoResourcesDetails
schema: GEO-RES
sheet: GEO-RES
subschema: N
xmlns: cisu:3.0:georesourcesdetails
- automaticGeneration: N
customExtendClass: null
customExtendPackage: null
file: model.xlsx
header: N
package: report
perimeter: 15-15
rootElement: error
schema: RS-ERROR
sheet: RS-ERROR
subschema: N
xmlns: cisu:3.0
- automaticGeneration: Y
customExtendClass: null
customExtendPackage: null
file: model.xlsx
header: Y
package: reference
perimeter: 15-15
rootElement: reference
schema: RC-REF
sheet: RC-REF
subschema: N
xmlns: cisu:3.0
- automaticGeneration: N
customExtendClass: null
customExtendPackage: null
file: model.xlsx
header: N
package: customContent
perimeter: 15-15
rootElement: customContent
schema: customContent
sheet: customContent
subschema: N
xmlns: cisu:3.0
Binary file modified csv_parser/out/EMSI/EMSI.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/EMSI/EMSI.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/GEO-POS/GEO-POS.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/GEO-POS/GEO-POS.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/GEO-REQ/GEO-REQ.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/GEO-REQ/GEO-REQ.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/GEO-RES/GEO-RES.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/GEO-RES/GEO-RES.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/RC-DE/RC-DE.schema.docx
Binary file not shown.
10 changes: 5 additions & 5 deletions csv_parser/out/RC-DE/RC-DE.uml_diagram
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ strict digraph {
</TR>
<TR><TD BORDER="0"><I>objet sender</I></TD></TR><TR><TD BORDER="0" >name <I>string</I> : [1..1] </TD></TR><TR><TD BORDER="0" >URI <I>string</I> : [1..1] </TD></TR>
</TABLE>>]
sender -> DistributionElement [headlabel=1 taillabel=1]
sender -> distributionElement [headlabel=1 taillabel=1]
recipient [label=<<TABLE>
<TR>
<TD ><B>recipient</B></TD>
</TR>
<TR><TD BORDER="0"><I>objet recipient</I></TD></TR><TR><TD BORDER="0" >name <I>string</I> : [1..1] </TD></TR><TR><TD BORDER="0" >URI <I>string</I> : [1..1] </TD></TR>
</TABLE>>]
recipient -> DistributionElement [headlabel=1 taillabel="1..*"]
DistributionElement [label=<<TABLE>
recipient -> distributionElement [headlabel=1 taillabel="1..*"]
distributionElement [label=<<TABLE>
<TR>
<TD ><B>DistributionElement</B></TD>
<TD ><B>distributionElement</B></TD>
</TR>
<TR><TD BORDER="0"><I>objet DistributionElement</I></TD></TR><TR><TD BORDER="0" >messageId <I>string</I> : [1..1] </TD></TR><TR><TD BORDER="0" >sentAt <I>date-time</I> : [1..1] </TD></TR><TR><TD BORDER="0" >kind <I>string</I> : [1..1] </TD></TR><TR><TD BORDER="0" >status <I>string</I> : [1..1] </TD></TR>
<TR><TD BORDER="0"><I>objet distributionElement</I></TD></TR><TR><TD BORDER="0" >messageId <I>string</I> : [1..1] </TD></TR><TR><TD BORDER="0" >sentAt <I>date-time</I> : [1..1] </TD></TR><TR><TD BORDER="0" >kind <I>string</I> : [1..1] </TD></TR><TR><TD BORDER="0" >status <I>string</I> : [1..1] </TD></TR>
</TABLE>>]
}
Binary file modified csv_parser/out/RC-DE/RC-DE.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/RC-EDA/RC-EDA.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/RC-EDA/RC-EDA.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/RC-REF/RC-REF.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/RC-REF/RC-REF.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/RS-BPV/RS-BPV.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/RS-BPV/RS-BPV.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/RS-DR/RS-DR.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/RS-DR/RS-DR.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/RS-EDA-MAJ/RS-EDA-MAJ.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/RS-EDA-MAJ/RS-EDA-MAJ.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/RS-EDA/RS-EDA.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/RS-EDA/RS-EDA.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/RS-ER/RS-ER.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/RS-ER/RS-ER.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/RS-ERROR/RS-ERROR.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/RS-ERROR/RS-ERROR.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/RS-RI/RS-RI.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/RS-RI/RS-RI.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/RS-RPIS/RS-RPIS.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/RS-RPIS/RS-RPIS.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/RS-RR/RS-RR.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/RS-RR/RS-RR.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/RS-SR/RS-SR.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/RS-SR/RS-SR.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/RS-URL/RS-URL.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/RS-URL/RS-URL.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/TECHNICAL/TECHNICAL.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/TECHNICAL/TECHNICAL.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/TECHNICAL_NOREQ/TECHNICAL_NOREQ.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/TECHNICAL_NOREQ/TECHNICAL_NOREQ.uml_diagram.pdf
Binary file not shown.
Binary file modified csv_parser/out/customContent/customContent.schema.docx
Binary file not shown.
Binary file modified csv_parser/out/customContent/customContent.uml_diagram.pdf
Binary file not shown.
86 changes: 85 additions & 1 deletion csv_parser/out/hubsante.asyncapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ components:
oneOf: &id001
- $ref: '#/components/schemas/technical'
- $ref: '#/components/schemas/technicalNoreq'
- $ref: '#/components/schemas/DistributionElement'
- $ref: '#/components/schemas/distributionElement'
- $ref: '#/components/schemas/createCase'
- $ref: '#/components/schemas/createCaseHealth'
- $ref: '#/components/schemas/createCaseHealthUpdate'
Expand Down Expand Up @@ -851,6 +851,90 @@ components:
examples:
- None
additionalProperties: false
distributionElement:
$id: classpath:/json-schema/schema#
x-id: RC-DE.schema.json#
example: example.json#
type: object
title: distributionElement
required:
- messageId
- sender
- sentAt
- kind
- status
- recipient
properties:
messageId:
type: string
title: Identifiant du message
x-health-only: false
x-cols: 6
example: example.json#/messageId
description: "Identifiant partag\xE9 de l'affaire/dossier, g\xE9n\xE9r\xE9\
\ une seule fois par le syst\xE8me du partenaire qui recoit la primo-demande\
\ de secours (cr\xE9ateur du dossier). \nIl est valoris\xE9 comme suit\
\ lors de sa cr\xE9ation : \n{pays}.{domaine}.{organisation}.{senderCaseId}\n\
\nIl doit pouvoir \xEAtre g\xE9n\xE9r\xE9 de fa\xE7on d\xE9centralis\xE9\
e et ne pr\xE9senter aucune ambigu\xEFt\xE9.\n Il doit \xEAtre unique\
\ dans l'ensemble des syst\xE8mes : le num\xE9ro de dossier fourni par\
\ celui qui g\xE9n\xE8re l'identifiant partag\xE9 doit donc \xEAtre un\
\ num\xE9ro unique dans son syst\xE8me."
examples:
- d350c9d2-9d76-4568-b0b7-a747ffadc949
sender:
$ref: '#/components/schemas/sender'
sentAt:
type: string
title: Horodatage envoi message
x-health-only: false
x-cols: 6
example: example.json#/sentAt
description: "Groupe date heure de d\xE9but de partage li\xE9 \xE0 l'envoi\
\ du message. Il doit \xEAtre coh\xE9rent avec le champ <dateTimeSent>\
\ de l'enveloppe EDXL (voir DST). L'indicateur de fuseau horaire Z ne\
\ doit pas \xEAtre utilis\xE9. Le fuseau horaire pour UTC doit \xEAtre\
\ repr\xE9sent\xE9 par '-00:00'"
pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[\-+]\d{2}:\d{2}$
format: date-time
examples:
- None
kind:
type: string
title: Type de message
x-health-only: false
x-cols: 6
example: example.json#/kind
description: Prend la valeur <distributionKind de l'enveloppe EDXL (voir
DST)
enum:
- Report
- Update
- Cancel
- Ack
- Error
examples:
- ALERT
status:
type: string
title: Statut du message
x-health-only: false
x-cols: 6
example: example.json#/status
description: Prend la valeur <distributionStatus> de l'enveloppe EDXL (voir
DST)
enum:
- Actual
- Exercise
- System
examples:
- ACTUAL
recipient:
type: array
items:
$ref: '#/components/schemas/recipient'
minItems: 1
additionalProperties: false
createCase:
$id: classpath:/json-schema/schema#
x-id: RC-EDA.schema.json#
Expand Down
Loading

0 comments on commit 1d3690f

Please sign in to comment.