Skip to content

TypeSpec support - Add typespec.io files (*.tsp) support #28

Description

@Artifizer
  1. LOW COMPLEXITY - GTS Specification repository:
  • create gts-spec/examples/typespec/vms folder and create several examples there - base VM type (CPU, RAM, name, ID), derived VM types for VMWare, Nutanix, Virtuozzo
  • create gts-spec/examples/yaml/ui folder and create several examples there - base UI item and derived types menu item, grid, and instance - ui_itemmenu_itemmy_menu_item
  • update gts-spec/README.md and mention YAML and TypeSpec support and examples
  1. LOW COMPLEXITY - gts-python :
  • add yaml support
  • add typespec support

in the code, rename JsonFile -> GtsFile, JsonEntity -> GtsEntity, JsonPathResolver -> GtsPathResolver, etc.

I'd suggest to make a tiny fix to just remap yaml and typespec on read to JSON/JSONSchema, the rest logic should remain the same

  1. LOW COMPLEXITY - gts-kit:
  • add yaml support in the parser
  • add typespec support in the parser
  1. HIGH COMPLEXITY - gts-kit:
  • add yaml support in the viewer (where we have JSON raw view)
  • add typespec support in the viewer (where we have JSON raw view)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status
      Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions