Skip to content
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

I can't find a simple description of the syntax #167

Open
julie777 opened this issue Feb 25, 2022 · 2 comments
Open

I can't find a simple description of the syntax #167

julie777 opened this issue Feb 25, 2022 · 2 comments

Comments

@julie777
Copy link

Feel free to raise an issue for any of the following:

  • Feature request

I would like to see an example that shows all the features/syntax of a strictyaml document with comments. There are some things that I haven't found an answer to and I don't want to read the yaml spec. Based on the percieved use cases of strictyaml I think it should have its own spec that is only a couple pages long and call itself yaml-like as opposed to saying it is a subset.

Example Doc

key:                      # defines a mapping to a compound value
    fred: is a good guy
    bob: is mean
mylist:                  # this is a named list, which is to say a mapping who's value is a list
- element 1
- element 2
description: this is a description
                    that is multiple lines
                    and when parsed will have trailing white space removed       # comments can appear anywhere and continue to the end  of the line
                    and leading white space replaced with a single space
@jnichols0
Copy link
Contributor

As far as I know, the spec is literally the yaml spec minus what is outlined here: https://hitchdev.com/strictyaml/features-removed/

@julie777
Copy link
Author

julie777 commented Mar 4, 2022

As far as I know, the spec is literally the yaml spec minus what is outlined here: https://hitchdev.com/strictyaml/features-removed/

That may be true, but it is a hard starting point for someone who has never used yaml and wants to use strictyaml for config files. (I have started trying to write a simpler document to allow users to get started with strictyaml. We'll see how that turns out.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants