raml-spec
quicktype
raml-spec | quicktype | |
---|---|---|
2 | 96 | |
3,862 | 11,590 | |
- | 1.7% | |
10.0 | 8.7 | |
about 2 years ago | 6 days ago | |
TypeScript | ||
- | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
raml-spec
-
Sharing data types on a multi-language project
Taking this concept further one could model in RAML [0] to define both the types (flat or nested) and api definitions. It's based on YAML 1.2 with enough maturity to provide capabilities such as union types, extensions, includes, user-defined facets, etc.
The AMF project [1] can be used to parse and transform to/from RAML, OpenAPI, GraphQL, and json schema. Code generation to languages of choice can be bolted on from there.
I'm using this approach to define canonical data models. Subsequent code generation scaffolds internal application integration apis, master data management (MDM) entities, and SQL/OLAP artifacts for ETL / BI purposes.
This approach keeps overall end-to-end data architecture consistent, in sync, and versioned under source control. Additionally, flat types as required by relational systems are re-used and composed into nested complex types more appropriate for apis. Metadata is layered on as needed to refine the models for system-specific needs, for example to add user-facing field groups, descriptions, and formats for BI datasets, sensitivity levels and other data security controls, business rule definitions for MDM, etc.
[0] https://github.com/raml-org/raml-spec/blob/master/versions/r...
-
Ask HN: Do you use JSON Schema? Help us shape its future stability guarantees
> Do you use JSON Schema?
At one point I did, but then discovered RAML[0] and it subsumed the value of what JSON Schema provides as well as being easier to work with than OpenAPI[1]. Also, generating JSON Schema from RAML definitions has proven to be a fairly straightforward process.
The usual caveats apply... Your mileage may vary, my experiences do not speak for any others, my opinion does not detract from the value of JSON Schema, etc.
0 - https://github.com/raml-org/raml-spec/blob/master/versions/r...
1 - https://swagger.io/specification/
quicktype
-
How do you navigate an api response where you don't know the exact structure?
I grab the response off of the network tab. Either make a structure manually or use something like QuickType
-
Tres herramientas para desarrolladores de software 👌
2. Quicktype
-
Show HN: A tool to Convert JSON schemas into TypeScript classes
I have the library demo linked from the homepage bookmarked: https://app.quicktype.io/ I use it every time I need to go from a pile of JSON to TypeScript types or zod declarations.
-
Sharing data types on a multi-language project
This is a very intriguing problem!
Not trying to steal thunder, but quicktype (https://github.com/quicktype/quicktype) does all of this–JSON schema or TypeScript definitions to de/serializers and types in nearly 30 languages at this point. Try it here: https://app.quicktype.io
-
How can I get the ingredients and measurements to display from theMealDB JSON?
I usually use this tool: https://app.quicktype.io
-
Need Help with Combine
Grab the json, paste it into https://app.quicktype.io/ and see if the structure matched your struct.
- The Typescript ecosystem is exhausting
-
how to efficiently create structs to match the json response
I usually use https://app.quicktype.io/ , they also have a VSCode plugin and then fieldaligment to make sure it's as compact as possible.
-
Fastest Way to Auto Generate Types for Typescript and Input validation
Just paste your json inside app.quicktype.io or it's vscode
-
Is anyone making productive use of ChatGPT?
P.S. This could be more efficient to generate Codable code than ChatGPT
What are some alternatives?
alterschema - Convert between JSON Schema specification versions.
json2dart - A CLI tool to help generate dart classes from json returned from API
schema-dts - JSON-LD TypeScript types for Schema.org vocabulary
json_serializable.dart - Generates utilities to aid in serializing to/from JSON.
laminar - OpenApi backed REST APIs. Automatic validation of request / response based on the api schema.
openapi-generator - OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
alt-schema - Flat JSON Schema specification and basic utility methods
zod-to-json-schema - Converts Zod schemas to Json schemas
OpenMetadata - Open Standard for Metadata. A Single place to Discover, Collaborate and Get your data right.
Flutter - Flutter makes it easy and fast to build beautiful apps for mobile and beyond
lowdefy - The config web stack for business apps - build internal tools, client portals, web apps, admin panels, dashboards, web sites, and CRUD apps with YAML or JSON.
DevToys - A Swiss Army knife for developers.