Skip to content

Commit baafd1e

Browse files
authored
Merge pull request #9 from ansforge/auto/model_tracker
[AUTO] Local auto nomenclature & MDD update collection
2 parents ed8c09d + 23506c5 commit baafd1e

File tree

199 files changed

+6741
-14028
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

199 files changed

+6741
-14028
lines changed

.github/workflows/generate-model.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,16 @@ jobs:
8181
commit_message: ⚙️ Auto-génération des classes et des specs
8282

8383
- name: Build and run tests
84-
run: ./gradlew test
85-
84+
run: ./gradlew test --info
85+
86+
# Ref.: https://github.com/gradle/gradle-build-action/issues/619#issuecomment-1453244157
87+
- name: Upload test report
88+
if: failure()
89+
uses: actions/upload-artifact@v4
90+
with:
91+
name: test-report
92+
path: build/reports/tests/test/**
93+
8694
- name: Add coverage to PR
8795
id: jacoco
8896
uses: madrapps/jacoco-report@v1.3

csv_parser/auto.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ run() {
3535
echo "[$DATE] Running script..." | tee -a "$LOG_FILE"
3636
echo "Checking out tracking branch ($TRACKING_BRANCH_NAME), copying files and committing changes..."
3737
git checkout "$TRACKING_BRANCH_NAME"
38-
git pull
38+
git pull --rebase
3939
setup
4040
git add ..
4141
nomenclatures

csv_parser/csv_parser.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ def get_nomenclature(elem):
8383
# Schema name is in name = RC-EDA (or RS-EDA) for instance
8484
MODEL_NAME = params['modelName'] # CreateCase
8585
MODEL_TYPE = MODEL_NAME[0].lower() + MODEL_NAME[1:] # createCase
86+
def isCreateCase():
87+
return MODEL_TYPE == "createCase"
88+
89+
if not filter and isCreateCase():
90+
MODEL_TYPE = "createCaseHealth"
8691
WRAPPER_NAME = f"{MODEL_TYPE}Wrapper" # createCaseWrapper
8792
NB_ROWS = params['rows']
8893
NB_COLS = params['cols']
@@ -415,6 +420,7 @@ def add_object_child_definition(parent, child, definitions):
415420
'x-health-only': child['is_health_only'],
416421
'required': [],
417422
'properties': {},
423+
'additionalProperties': False,
418424
'example': parentExamplePath + '/' + child['name'] + ('/0' if is_array(child) else '')
419425
}
420426
if child['Cardinalité'].startswith('1'):

csv_parser/json_schema2xsd/src/main/resources/EMSI.schema.json

Lines changed: 1588 additions & 28 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)