![]() The previous screenshots were taken with Visual Studio Code. There were even some changes to Pydantic itself to support this. This is not by chance, the whole framework was built around that design.Īnd it was thoroughly tested at the design phase, before any implementation, to ensure it would work with all the editors. You also get error checks for incorrect type operations: The -query parameter is supported by all commands in the Azure CLI. JMESPath is a query language for JSON, giving you the ability to select and modify data from CLI output. In your editor, inside your function you will get type hints and completion everywhere (this wouldn't happen if you received a dict instead of a Pydantic model): Next steps The Azure CLI uses the -query parameter to execute a JMESPath query on the results of commands. The JSON Schemas of your models will be part of your OpenAPI generated schema, and will be shown in the interactive API docs:Īnd will be also used in the API docs inside each path operation that needs them:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |