question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Detect common schemas

See original GitHub issue

Is it possible to add some automatic detection of the schema type for a yaml file (for popular schemas)? This is to allow zero configuration in many cases. For example when looking at kubernetes resources the presence of apiVersion, spec and type is a really good indicator.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
felixfbeckercommented, Feb 13, 2019

I don’t think $schema meaning something else is something to worry about. It is specced in the JSON schema standard, which the YAML language server is built upon. https://json-schema.org/latest/json-schema-core.html#rfc.section.7

2reactions
oetikercommented, Oct 16, 2018

how about following the convention vsc uses for json files: https://code.visualstudio.com/docs/languages/json#_json-schemas-settings

basically, the idea is that the yaml file can use the $schema key in the same way it is used in json schema definitions.

$schema: http://json.schemastore.org/coffeelint
line_endings: unix

This syntax is VS Code-specific and not part of the JSON Schema specification but I think it makes a lot of sense and thus would be worth supporting here too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Schema Therapy For Practitioners: 7 Questionnaires and Tests
We share questionnaires & tests that support initial & ongoing schema therapy assessments, helping clients deal with unhelpful behaviors.
Read more >
Schemas in Schema Therapy | San Jose and California
The most basic concept in Schema Therapy is an Early Maladaptive Schema. We define schemas as: “broad, pervasive themes regarding oneself and one's ......
Read more >
Overcoming Schema-Driven Relationship Problems
Identify your CBT schemas. Interpersonal Schemas Quiz. Improve your abandonment and interpersonal schemas. How to get past these traumas and improve.
Read more >
Automatic Schema Detection And Matching
Data analysts need to know the schema of all the data sets as well as which tables and columns represent common entities. Schema...
Read more >
List of schemas - Counselling & Therapy Online
Many people who identify with schemas within this domain come from families perceived ... This is probably one of the most common schemas...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found