-
Notifications
You must be signed in to change notification settings - Fork 162
[DOCS] Update the auto YAML Generation #7725
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
unsur eif schema./yaml is maintained or auto generated.
|
@mindspank thoughts on this PR?
If approved, ill go back in and overwrite /reference/project-files/ and fix any broken links |
|
@royendo , we prefer using a single file instead of using imports — like in this example, where everything is in one file. Initially, I had created separate files and imported them into project.schema.yaml, like you did, but @begelundmuller suggested keeping everything in one file. |
all schemas into one including rillyaml. commented out lines. reworked generate-project.go: - moved out logic for sample in copy, uses schema sample instead - adding in line examples
| - $ref: '#/definitions/model' | ||
| - $ref: '#/definitions/theme' | ||
| - $ref: '#/definitions/connectors' | ||
| - $ref: '#/definitions/sources' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should remove source too? As sidd mentioned lesser pages the better
Co-authored-by: Naman Mahor <[email protected]>
* some changes for connector YAML unsur eif schema./yaml is maintained or auto generated. * remove * separated YAML schema * nit * link fixes * Update generate_project.go * add sec warning * motherduck live connector * remove local file from connector * nit * matching file names * reordered files and added sources YAML and model SQL * nit, fix links * comparing with current YAML changes * adding annotatons back * gofmt, golint * fix * first pass fix, need to review a few other items * remove toplevel driver * single project file all schemas into one including rillyaml. commented out lines. reworked generate-project.go: - moved out logic for sample in copy, uses schema sample instead - adding in line examples * Update generate_project.go * good old cursor wiped my functoni * missing parameters * midding parameters and inline examples * god so many false positives from asking cursor to merge files * adding links * fixed oneOf * split data properties to have api excamples * gonig through files * returning original format next will be adding more examples * ? * fixing urls, * apis fix * formattnig * separated rill yaml, adv from rest, #### to ###, added component back * examples * https://rilldata.slack.com/archives/C07R1EP2CCV/p1754929153966689 makes more sense, less duplicate info * fixing examples confirm yaml, comment out sources "/Users/royendo/Desktop/GitHub/rill/runtime/parser/schema/project.schema.yaml": [ "alerts/**/*.yaml", "apis/**/*.yaml", "connectors/**/*.yaml", "dashboards/**/*.yaml", "metrics/**/*.yaml", "models/**/*.yaml", // "sources/**/*.yaml" ] } * overwrite /reference/project-files and fixing links * type and fix links, add openai connector * gm fmt and lint * prettier and lint * Update docusaurus.config.js * advanced-model to model * ready to check * adding schema_name for MD * as requested * fix links * golang lint * no more type error * last touches and requests * Update apis.md * lint fix * remove commented code * Update Makefile Co-authored-by: Naman Mahor <[email protected]> * Update generate_project.go * lint * Update generate_project.go --------- Co-authored-by: Naman Mahor <[email protected]>
* some changes for connector YAML unsur eif schema./yaml is maintained or auto generated. * remove * separated YAML schema * nit * link fixes * Update generate_project.go * add sec warning * motherduck live connector * remove local file from connector * nit * matching file names * reordered files and added sources YAML and model SQL * nit, fix links * comparing with current YAML changes * adding annotatons back * gofmt, golint * fix * first pass fix, need to review a few other items * remove toplevel driver * single project file all schemas into one including rillyaml. commented out lines. reworked generate-project.go: - moved out logic for sample in copy, uses schema sample instead - adding in line examples * Update generate_project.go * good old cursor wiped my functoni * missing parameters * midding parameters and inline examples * god so many false positives from asking cursor to merge files * adding links * fixed oneOf * split data properties to have api excamples * gonig through files * returning original format next will be adding more examples * ? * fixing urls, * apis fix * formattnig * separated rill yaml, adv from rest, #### to ###, added component back * examples * https://rilldata.slack.com/archives/C07R1EP2CCV/p1754929153966689 makes more sense, less duplicate info * fixing examples confirm yaml, comment out sources "/Users/royendo/Desktop/GitHub/rill/runtime/parser/schema/project.schema.yaml": [ "alerts/**/*.yaml", "apis/**/*.yaml", "connectors/**/*.yaml", "dashboards/**/*.yaml", "metrics/**/*.yaml", "models/**/*.yaml", // "sources/**/*.yaml" ] } * overwrite /reference/project-files and fixing links * type and fix links, add openai connector * gm fmt and lint * prettier and lint * Update docusaurus.config.js * advanced-model to model * ready to check * adding schema_name for MD * as requested * fix links * golang lint * no more type error * last touches and requests * Update apis.md * lint fix * remove commented code * Update Makefile Co-authored-by: Naman Mahor <[email protected]> * Update generate_project.go * lint * Update generate_project.go --------- Co-authored-by: Naman Mahor <[email protected]>
* some changes for connector YAML unsur eif schema./yaml is maintained or auto generated. * remove * separated YAML schema * nit * link fixes * Update generate_project.go * add sec warning * motherduck live connector * remove local file from connector * nit * matching file names * reordered files and added sources YAML and model SQL * nit, fix links * comparing with current YAML changes * adding annotatons back * gofmt, golint * fix * first pass fix, need to review a few other items * remove toplevel driver * single project file all schemas into one including rillyaml. commented out lines. reworked generate-project.go: - moved out logic for sample in copy, uses schema sample instead - adding in line examples * Update generate_project.go * good old cursor wiped my functoni * missing parameters * midding parameters and inline examples * god so many false positives from asking cursor to merge files * adding links * fixed oneOf * split data properties to have api excamples * gonig through files * returning original format next will be adding more examples * ? * fixing urls, * apis fix * formattnig * separated rill yaml, adv from rest, #### to ###, added component back * examples * https://rilldata.slack.com/archives/C07R1EP2CCV/p1754929153966689 makes more sense, less duplicate info * fixing examples confirm yaml, comment out sources "/Users/royendo/Desktop/GitHub/rill/runtime/parser/schema/project.schema.yaml": [ "alerts/**/*.yaml", "apis/**/*.yaml", "connectors/**/*.yaml", "dashboards/**/*.yaml", "metrics/**/*.yaml", "models/**/*.yaml", // "sources/**/*.yaml" ] } * overwrite /reference/project-files and fixing links * type and fix links, add openai connector * gm fmt and lint * prettier and lint * Update docusaurus.config.js * advanced-model to model * ready to check * adding schema_name for MD * as requested * fix links * golang lint * no more type error * last touches and requests * Update apis.md * lint fix * remove commented code * Update Makefile Co-authored-by: Naman Mahor <[email protected]> * Update generate_project.go * lint * Update generate_project.go --------- Co-authored-by: Naman Mahor <[email protected]>
| - name | ||
| additionalProperties: false | ||
| minItems: 1 | ||
| explore_properties: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This had all the explore properties that can be set for explores defined inline under explore: in a metrics view (the properties here are subtlety different from those in the stand-alone explore resource).
Separated the schema files for easier management
referenced in project.schema.yaml.
reworked connections to look similar to currrent with copiable form.
models.schema.yaml --> advanced-model.schema.yaml
once confirmed, we can move this to rewrite /reference/project--files/
Checklist: