Code Monkey home page Code Monkey logo

json's People

Contributors

caligo-mentis avatar simonbrowndotje avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

json's Issues

Spec contains non-standard number type descriptions

Description

Not a big deal, but as far as I can tell from the OpenAPI spec documentation, some of the number types are incorrectly described in the structurizr spec.

https://swagger.io/docs/specification/data-models/data-types/#numbers

Basically, any occurrence of

type: number
format: integer

should just be

type: integer

and any occurrence of

type: number
format: long

should be

type: integer
format: in64

Steps to reproduce

Search the OpenAPI spec for format: long or format: integer.

Screenshot

No response

Code sample

No response

Configuration

No response

Severity

Minor

Priority

I have no budget and there's no rush, please fix this for free

More information

No response

Add "include *" from views in DSL to JSON

Hi @simonbrowndotje and first of all thanks for all your effort with Diagrams as code & the C4 model.

I recognized while converting the DSL to JSON, the definition of "include *" in the views of the DSL files gets transformed as "real includes" in the JSON file. Can we somehow preserve this "include *" in the JSON schema, so we don't lose this information?

Thanks,
Dominik

DefaultTags missing in OpenAPI

Hey Simon, I just did see the attribute "default tags" in the JSON generated by structurizr/lite. Is this maybe missing in the OpenAPI document and how does this attribute behave? Thanks, Dominik

Is it possible to add which fields are required?

Description

When using tooling to generate TypeScript types, it makes every field optional, as there are no fields marked as required.

Priority

I have no budget and there's no rush, please add this feature for free

More information

No response

OpenAPI spec is missing documentation for perspectives

Description

As discussed on Slack, the new feature that allows assigning values to perspectives, is not documented in the workspace API. In fact, I can't find any mention of perspectives at all.

Since https://github.com/Midnighter/structurizr-python/ is basically a thin client around the workspace API, it will be very interesting to have perspectives in the OpenAPI spec.

Steps to reproduce

Search https://github.com/structurizr/json/blob/master/structurizr.yaml for perspectives.

Screenshot

No response

Code sample

No response

Configuration

No response

Severity

Minor

Priority

I have no budget and there's no rush, please fix this for free

More information

No response

SoftwareSystemInstance definition should have softwareSystemId, not containerId

Currently in structurizr.yaml, SoftwareSystemInstance is defined (line 421 onwards) as:

SoftwareSystemInstance:
      type: object
      description: An instance of a software system, running on a deployment node.
      properties:
        id:
          type: string
          description: The ID of this software system instance in the model.
        containerId:
          type: string
          description: The ID of the software system this is an instance of.
        instanceId:
          type: number
          description: The number/index of this instance.
        ....

I would have thought that the containerId property should actually be softwareSystemId.

Workspace id should be a string

Description

Contrary to the specification in structurizr.yaml, the id of a workspace is saved as a number instead of a string in the JSON file.

Steps to reproduce

  1. Take the Getting Started example workspace.dsl
  2. Give the workspace a name, e..g. workspace "Getting Started"
  3. Open the workspace in structurizr/lite
  4. Open the generated workspace.json
  5. Line 5 now reads: "id": 1, and should be "id": "1",

Screenshot

No response

Code sample

No response

Configuration

No response

Severity

Minor

Priority

I have no budget and there's no rush, please fix this for free

More information

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.