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

[Investigation] Correction de la version d'OpenAPI pour rétablir les changements dans les classes Java générées #235

Merged
merged 24 commits into from
Jan 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
148de7d
feat: fixing OpenAPI versions
romainfd Jan 20, 2025
b207f94
⚙️ Auto-génération des classes et des specs
romainfd Jan 20, 2025
6c1f0d8
feat: even older OpenAPI versions
romainfd Jan 20, 2025
a76e166
⚙️ Auto-génération des librairies
romainfd Jan 20, 2025
864446f
feat: keeping openapitools.json
romainfd Jan 20, 2025
f2c342b
feat: triggering github action
romainfd Jan 20, 2025
2b7c7e6
⚙️ Auto-génération des classes et des specs
romainfd Jan 20, 2025
523ed74
feat: udating version setup
romainfd Jan 20, 2025
b3f51a8
feat: updating openapitools.json version
romainfd Jan 20, 2025
1033d30
⚙️ Auto-génération des classes et des specs
romainfd Jan 20, 2025
ac8a943
feat: trying later OpenAPI version
romainfd Jan 20, 2025
c18cf32
⚙️ Auto-génération des classes et des specs
romainfd Jan 20, 2025
42ace79
feat: looking for best OpenAPI version
romainfd Jan 20, 2025
d5bf4b5
⚙️ Auto-génération des classes et des specs
romainfd Jan 20, 2025
6657996
feat: looking for best OpenAPI version (7.7.0)
romainfd Jan 20, 2025
6d28ee7
⚙️ Auto-génération des classes et des specs
romainfd Jan 20, 2025
2ffe018
feat: looking for best OpenAPI version (7.6.0)
romainfd Jan 20, 2025
84e82b7
⚙️ Auto-génération des classes et des specs
romainfd Jan 20, 2025
e28f6c4
feat: looking for best OpenAPI version (7.5.0)
romainfd Jan 20, 2025
ad9ed07
⚙️ Auto-génération des classes et des specs
romainfd Jan 20, 2025
146ff6d
feat: looking for best OpenAPI version (7.4.0)
romainfd Jan 20, 2025
13c29c1
⚙️ Auto-génération des classes et des specs
romainfd Jan 20, 2025
f104bdc
feat: reverting changes to trigger action
romainfd Jan 20, 2025
24c0037
feat: clean .gitignore
romainfd Jan 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/generate-model.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ jobs:

- name: Install openapi-generator-cli
if: steps.filter.outputs.parsing_required == 'true'
run: npm install -g @openapitools/openapi-generator-cli
run: npm install -g @openapitools/openapi-generator-cli@2.9.0

- name: Install linter
if: steps.filter.outputs.parsing_required == 'true'
Expand All @@ -160,15 +160,17 @@ jobs:
if: steps.filter.outputs.parsing_required == 'true'
working-directory: ./generator
run: |
# Setup OpenAPI version
npx openapi-generator-cli version-manager set 7.4.0
# Iterate over each file in the ./config directory, including the entire subfolder structure
# and then run @openapitools/openapi-generator-cli generate for each file found
# Important notice:
# Results of the find command are sorted in an alphabetic order before being passed to xargs
# This means that since the order of class generation is important, it's necessary to maintain an adequately
# named file structure in the ./config/** directories
# generator-config.json (if exists) -> usecase.generator-config.json -> wrapper.generator-config.json
find ./config/ -type f | sort -n | while read -r file; do npx @openapitools/openapi-generator-cli generate -c "$file" --skip-validate-spec; done
find ./config/ -type f | sort -n | while read -r file; do npx @openapitools/openapi-generator-cli@2.9.0 generate -c "$file" --skip-validate-spec; done

- name: Replace src/ with generated classes
if: steps.filter.outputs.parsing_required == 'true'
run: |
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ coveragereport/**
web_specs/generated/**
bin/

**/openapitools.json
# À versionner pour suivre la version d'OpenAPI utilisé pour la génération
# **/openapitools.json

# Generated libraries packages
# Python
Expand Down
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.
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.
7 changes: 7 additions & 0 deletions generator/openapitools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
"spaces": 2,
"generator-cli": {
"version": "7.4.0"
}
}
7 changes: 7 additions & 0 deletions generator_csharp/openapitools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
"spaces": 2,
"generator-cli": {
"version": "7.10.0"
}
}
7 changes: 7 additions & 0 deletions generator_python/openapitools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
"spaces": 2,
"generator-cli": {
"version": "7.10.0"
}
}
7 changes: 7 additions & 0 deletions generator_ruby/openapitools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
"spaces": 2,
"generator-cli": {
"version": "7.10.0"
}
}
10 changes: 5 additions & 5 deletions src/main/java/com/hubsante/model/cisu/Access.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
* limitations under the License.
*/
/*
* OpenAPI
* OpenAPI
*
* The version of the OpenAPI document: 0.0.1
*
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator
Expand Down Expand Up @@ -63,7 +63,7 @@ public class Access {
private String interphone;

public static final String JSON_PROPERTY_ACCESS_CODE = "accessCode";
private List<String> accessCode = new ArrayList<>();
private List<String> accessCode;

public static final String JSON_PROPERTY_ELEVATOR = "elevator";
private String elevator;
Expand Down Expand Up @@ -158,7 +158,7 @@ public Access accessCode(List<String> accessCode) {
return this;
}

public Access addaccessCodeItem(String accessCodeItem) {
public Access addAccessCodeItem(String accessCodeItem) {
if (this.accessCode == null) {
this.accessCode = new ArrayList<>();
}
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/com/hubsante/model/cisu/AdditionalInformation.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
* limitations under the License.
*/
/*
* OpenAPI
* OpenAPI
*
* The version of the OpenAPI document: 0.0.1
*
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator
Expand Down Expand Up @@ -50,7 +50,7 @@

public class AdditionalInformation {
public static final String JSON_PROPERTY_CUSTOM_MAP = "customMap";
private List<CustomMap> customMap = new ArrayList<>();
private List<CustomMap> customMap;

public AdditionalInformation() {}

Expand All @@ -60,7 +60,7 @@ public AdditionalInformation customMap(List<CustomMap> customMap) {
return this;
}

public AdditionalInformation addcustomMapItem(CustomMap customMapItem) {
public AdditionalInformation addCustomMapItem(CustomMap customMapItem) {
if (this.customMap == null) {
this.customMap = new ArrayList<>();
}
Expand Down
18 changes: 9 additions & 9 deletions src/main/java/com/hubsante/model/cisu/Alert.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
* limitations under the License.
*/
/*
* OpenAPI
* OpenAPI
*
* The version of the OpenAPI document: 0.0.1
*
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator
Expand Down Expand Up @@ -75,9 +75,9 @@ public class Alert {
* fonctionnalités faisant ressortir les dossiers avec le libellé ATTENTION
*/
public enum ReportingEnum {
STANDARD(String.valueOf("STANDARD")),
STANDARD("STANDARD"),

ATTENTION(String.valueOf("ATTENTION"));
ATTENTION("ATTENTION");

private String value;

Expand Down Expand Up @@ -108,7 +108,7 @@ public static ReportingEnum fromValue(String value) {
private ReportingEnum reporting;

public static final String JSON_PROPERTY_NOTES = "notes";
private List<Notes> notes = new ArrayList<>();
private List<Notes> notes;

public static final String JSON_PROPERTY_CALLER = "caller";
private Caller caller;
Expand All @@ -123,7 +123,7 @@ public static ReportingEnum fromValue(String value) {
private CallTaker callTaker;

public static final String JSON_PROPERTY_ATTACHMENT = "attachment";
private List<Attachment> attachment = new ArrayList<>();
private List<Attachment> attachment;

public Alert() {}

Expand Down Expand Up @@ -221,7 +221,7 @@ public Alert notes(List<Notes> notes) {
return this;
}

public Alert addnotesItem(Notes notesItem) {
public Alert addNotesItem(Notes notesItem) {
if (this.notes == null) {
this.notes = new ArrayList<>();
}
Expand Down Expand Up @@ -352,7 +352,7 @@ public Alert attachment(List<Attachment> attachment) {
return this;
}

public Alert addattachmentItem(Attachment attachmentItem) {
public Alert addAttachmentItem(Attachment attachmentItem) {
if (this.attachment == null) {
this.attachment = new ArrayList<>();
}
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/hubsante/model/cisu/Attachment.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
* limitations under the License.
*/
/*
* OpenAPI
* OpenAPI
*
* The version of the OpenAPI document: 0.0.1
*
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/hubsante/model/cisu/CallTaker.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
* limitations under the License.
*/
/*
* OpenAPI
* OpenAPI
*
* The version of the OpenAPI document: 0.0.1
*
*
*
*
*
* NOTE: This class is auto generated by OpenAPI Generator
Expand Down
Loading
Loading