PSGitLab
PSGitLab copied to clipboard
Define custom GitLab-related object types using ps1xml files
Currently, custom GitLab-related object types are defined dynamically under retrieving data from PSGitLab
The line of code responsible for that is the line 81 of the file Private/QueryGitLabAPI.ps1.
This way of defining types is described e.g. in the blog post Custom objects and PSTypeName by @MikeShepard.
By defining GitLab-related types in the file ps1xml as described in About Types.ps1xml) we will achieve
- better readability what a type contains
- possibility to add nested objects (?) with types of them
https://twitter.com/ITpraktyk/status/1008195620845256704