Skip to content

Commit

Permalink
modgen v1.42.3, vscode v1.42.3, tmdgen v1.6.7
Browse files Browse the repository at this point in the history
  • Loading branch information
gideruette committed Dec 14, 2023
1 parent 0830190 commit 186eaf1
Show file tree
Hide file tree
Showing 19 changed files with 56 additions and 51 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# TopModel.Generator (`modgen`)

## 1.42.3

- [`44eb93`](https://github.com/klee-contrib/topmodel/commit/27da8fd072cd4534e43fcee758d737b8e5128bf0) - [SQL] Ne pas générer de script d'insert pour le classes non persistées
- [`56c2dde`](https://github.com/klee-contrib/topmodel/commit/56c2dde501b97cf9fc9ce0228f57a7b2c61c2b3a) - [JPA] Choix du mode de génération de l'api cliente : RestTemplate ou RestClient

## 1.42.2

- [`b141e30`](https://github.com/klee-contrib/topmodel/commit/b141e30665fad3dcc526265ef728c27a9ef8f98f) - [Spring API] Correction bug accept
Expand Down
2 changes: 1 addition & 1 deletion TopModel.Generator/TopModel.Generator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<PackAsTool>true</PackAsTool>
<PackageOutputPath>../.nupkg</PackageOutputPath>
<ToolCommandName>modgen</ToolCommandName>
<Version>1.42.2</Version>
<Version>1.42.3</Version>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<Authors>JabX;gideruette</Authors>
<Description>Générateur de modèle TopModel.</Description>
Expand Down
2 changes: 1 addition & 1 deletion TopModel.ModelGenerator/OpenApi/OpenApiTmdGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ protected override async IAsyncEnumerable<string> GenerateCore()
{
Alias = enumClass.Properties[0],
Name = $"{property.Key.ToPascalCase()}",
Comment = @$"""property.Value.Description.Format()""",
Comment = @$"""{property.Value.Description.Format()}""",
Class = classe
});
}
Expand Down
2 changes: 1 addition & 1 deletion TopModel.ModelGenerator/TopModel.ModelGenerator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<PackAsTool>true</PackAsTool>
<PackageOutputPath>../.nupkg</PackageOutputPath>
<ToolCommandName>tmdgen</ToolCommandName>
<Version>1.6.6</Version>
<Version>1.6.7</Version>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<Authors>JabX;gideruette</Authors>
<Description>Générateur de modèle TopModel à partir de sources externes (OpenAPI, Postgresql, Oracle...).</Description>
Expand Down
2 changes: 1 addition & 1 deletion TopModel.VSCode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"directory": "TopModel.VSCode",
"type": "git"
},
"version": "1.42.0",
"version": "1.42.1",
"engines": {
"vscode": "^1.84.1"
},
Expand Down
2 changes: 1 addition & 1 deletion docs/_coverpage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![logo](./media/IconDark.svg)

# TopModel <small>1.42.1</small>
# TopModel <small>1.42.3</small>

> Modélisez en toute simplicité.
Expand Down
4 changes: 2 additions & 2 deletions samples/generators/open-api/Petstore/Model.tmd
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class:
class: OrderStatus
property: Value
name: Status
comment: Order Status
comment: "Order Status"

- name: complete
domain: DO_BOOLEAN
Expand Down Expand Up @@ -141,7 +141,7 @@ class:
class: PetStatus
property: Value
name: Status
comment: pet status in the store
comment: "pet status in the store"
---
class:
name: PetStatus
Expand Down
34 changes: 17 additions & 17 deletions samples/generators/open-api/Petstore/Pet.tmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ endpoint:
name: addPet
method: POST
route: pet
description: Add a new pet to the store
description: "Add a new pet to the store"
preservePropertyCasing: true
params:
- composition: Pet
Expand All @@ -28,25 +28,25 @@ endpoint:
name: deletePet
method: DELETE
route: pet/{petId}
description: Deletes a pet
description: "Deletes a pet"
preservePropertyCasing: true
params:
- name: petId
domain: DO_ID
comment: Pet id to delete
comment: "Pet id to delete"
---
endpoint:
name: findPetsByStatus
method: GET
route: pet/findByStatus
description: Finds Pets by status
description: "Finds Pets by status"
preservePropertyCasing: true
params:
- alias:
class: FindPetsByStatusStatus
property: Value
name: Status
comment: Status values that need to be considered for filter
comment: "Status values that need to be considered for filter"
returns:
composition: Pet
name: Result
Expand All @@ -57,12 +57,12 @@ endpoint:
name: findPetsByTags
method: GET
route: pet/findByTags
description: Finds Pets by tags
description: "Finds Pets by tags"
preservePropertyCasing: true
params:
- name: tags
domain: DO_LIBELLE
comment: Tags to filter by
comment: "Tags to filter by"
returns:
composition: Pet
name: Result
Expand All @@ -73,12 +73,12 @@ endpoint:
name: getPetById
method: GET
route: pet/{petId}
description: Find pet by ID
description: "Find pet by ID"
preservePropertyCasing: true
params:
- name: petId
domain: DO_ID
comment: ID of pet to return
comment: "ID of pet to return"
returns:
composition: Pet
name: Result
Expand All @@ -88,7 +88,7 @@ endpoint:
name: updatePet
method: PUT
route: pet
description: Update an existing pet
description: "Update an existing pet"
preservePropertyCasing: true
params:
- composition: Pet
Expand All @@ -103,26 +103,26 @@ endpoint:
name: updatePetWithForm
method: POST
route: pet/{petId}
description: Updates a pet in the store with form data
description: "Updates a pet in the store with form data"
preservePropertyCasing: true
params:
- name: petId
domain: DO_ID
comment: ID of pet that needs to be updated
comment: "ID of pet that needs to be updated"

- name: name
domain: DO_LIBELLE
comment: Name of pet that needs to be updated
comment: "Name of pet that needs to be updated"

- name: status
domain: DO_LIBELLE
comment: Status of pet that needs to be updated
comment: "Status of pet that needs to be updated"
---
endpoint:
name: uploadFile
method: POST
route: pet/{petId}/uploadImage
description: uploads an image
description: "uploads an image"
preservePropertyCasing: true
params:
- name: body
Expand All @@ -132,11 +132,11 @@ endpoint:

- name: petId
domain: DO_ID
comment: ID of pet to update
comment: "ID of pet to update"

- name: additionalMetadata
domain: DO_LIBELLE
comment: Additional Metadata
comment: "Additional Metadata"
returns:
composition: ApiResponse
name: Result
Expand Down
12 changes: 6 additions & 6 deletions samples/generators/open-api/Petstore/Store.tmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ endpoint:
name: deleteOrder
method: DELETE
route: store/order/{orderId}
description: Delete purchase order by ID
description: "Delete purchase order by ID"
preservePropertyCasing: true
params:
- name: orderId
domain: DO_ID
comment: ID of the order that needs to be deleted
comment: "ID of the order that needs to be deleted"
---
endpoint:
name: getInventory
method: GET
route: store/inventory
description: Returns pet inventories by status
description: "Returns pet inventories by status"
preservePropertyCasing: true
returns:
name: Result
Expand All @@ -36,12 +36,12 @@ endpoint:
name: getOrderById
method: GET
route: store/order/{orderId}
description: Find purchase order by ID
description: "Find purchase order by ID"
preservePropertyCasing: true
params:
- name: orderId
domain: DO_ID
comment: ID of order that needs to be fetched
comment: "ID of order that needs to be fetched"
returns:
composition: Order
name: Result
Expand All @@ -51,7 +51,7 @@ endpoint:
name: placeOrder
method: POST
route: store/order
description: Place an order for a pet
description: "Place an order for a pet"
preservePropertyCasing: true
params:
- composition: Order
Expand Down
24 changes: 12 additions & 12 deletions samples/generators/open-api/Petstore/User.tmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ endpoint:
name: createUser
method: POST
route: user
description: Create user
description: "Create user"
preservePropertyCasing: true
params:
- composition: User
Expand All @@ -24,7 +24,7 @@ endpoint:
name: createUsersWithListInput
method: POST
route: user/createWithList
description: Creates list of users with given input array
description: "Creates list of users with given input array"
preservePropertyCasing: true
params:
- composition: User
Expand All @@ -40,23 +40,23 @@ endpoint:
name: deleteUser
method: DELETE
route: user/{username}
description: Delete user
description: "Delete user"
preservePropertyCasing: true
params:
- name: username
domain: DO_LIBELLE
comment: The name that needs to be deleted
comment: "The name that needs to be deleted"
---
endpoint:
name: getUserByName
method: GET
route: user/{username}
description: Get user by user name
description: "Get user by user name"
preservePropertyCasing: true
params:
- name: username
domain: DO_LIBELLE
comment: The name that needs to be fetched. Use user1 for testing.
comment: "The name that needs to be fetched. Use user1 for testing. "
returns:
composition: User
name: Result
Expand All @@ -66,16 +66,16 @@ endpoint:
name: loginUser
method: GET
route: user/login
description: Logs user into the system
description: "Logs user into the system"
preservePropertyCasing: true
params:
- name: password
domain: DO_LIBELLE
comment: The password for login in clear text
comment: "The password for login in clear text"

- name: username
domain: DO_LIBELLE
comment: The user name for login
comment: "The user name for login"
returns:
name: Result
domain: DO_LIBELLE
Expand All @@ -86,14 +86,14 @@ endpoint:
name: logoutUser
method: GET
route: user/logout
description: Logs out current logged in user session
description: "Logs out current logged in user session"
preservePropertyCasing: true
---
endpoint:
name: updateUser
method: PUT
route: user/{username}
description: Update user
description: "Update user"
preservePropertyCasing: true
params:
- composition: User
Expand All @@ -102,4 +102,4 @@ endpoint:

- name: username
domain: DO_LIBELLE
comment: name that need to be deleted
comment: "name that need to be deleted"
2 changes: 1 addition & 1 deletion samples/generators/open-api/tmdgen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ATTENTION CE FICHIER EST GENERE AUTOMATIQUEMENT !
#

version: 1.6.6
version: 1.6.7
generatedFiles:
- ./Petstore/Model.tmd
- ./Petstore/Pet.tmd
Expand Down
2 changes: 1 addition & 1 deletion samples/model/angular.topmodel.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ATTENTION CE FICHIER EST GENERE AUTOMATIQUEMENT !
#

version: 1.42.2
version: 1.42.3
generatedFiles:
- ../generators/angular/src/appgenerated/api/securite/profil/profil.ts
- ../generators/angular/src/appgenerated/api/securite/utilisateur/utilisateur.ts
Expand Down
2 changes: 1 addition & 1 deletion samples/model/csharp.topmodel.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ATTENTION CE FICHIER EST GENERE AUTOMATIQUEMENT !
#

version: 1.42.2
version: 1.42.3
generatedFiles:
- ../generators/csharp/src/Clients/CSharp.Clients.Db/generated/CSharpDbContext.comments.cs
- ../generators/csharp/src/Clients/CSharp.Clients.Db/generated/CSharpDbContext.cs
Expand Down
2 changes: 1 addition & 1 deletion samples/model/focus.topmodel.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ATTENTION CE FICHIER EST GENERE AUTOMATIQUEMENT !
#

version: 1.42.2
version: 1.42.3
generatedFiles:
- ../generators/focus/src/locale/common.ts
- ../generators/focus/src/locale/securite.ts
Expand Down
2 changes: 1 addition & 1 deletion samples/model/jpa.topmodel.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ATTENTION CE FICHIER EST GENERE AUTOMATIQUEMENT !
#

version: 1.42.2
version: 1.42.3
generatedFiles:
- ../generators/jpa/src/main/javagen/topmodel/jpa/sample/demo/api/client/securite/profil/ProfilClient.java
- ../generators/jpa/src/main/javagen/topmodel/jpa/sample/demo/api/client/securite/utilisateur/UtilisateurClient.java
Expand Down
2 changes: 1 addition & 1 deletion samples/model/pg.topmodel.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ATTENTION CE FICHIER EST GENERE AUTOMATIQUEMENT !
#

version: 1.42.2
version: 1.42.3
generatedFiles:
- ../generators/pg/src/01_tables.sql
- ../generators/pg/src/02_fk_indexes.sql
Expand Down
2 changes: 1 addition & 1 deletion samples/model/php.topmodel.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ATTENTION CE FICHIER EST GENERE AUTOMATIQUEMENT !
#

version: 1.42.2
version: 1.42.3
generatedFiles:
- ../generators/php/src/Entity/Securite/Profil/Droit.php
- ../generators/php/src/Entity/Securite/Profil/Profil.php
Expand Down
Loading

0 comments on commit 186eaf1

Please sign in to comment.