Skip to content

schema specification in yaml #342

Answered by iamwacko
gopik asked this question in Ideas
Discussion options

You must be logged in to vote

While I don't see much of a benefit of using YAML, nesting in YAML isn't that complicated. To turn what you have into YAML. the braces, commas, and some of the parentheses are removed.

            type: "datasource"
            path: "json:iodata.json"
            cycle: true
            timestamp: 
                type: "date_time"
                format: "%Y-%m-%dT%H:%M:%S%z"
                begin: "2000-01-01T00:00:00+0000"
                end: "2020-01-01T00:00:00+0000"
            device_id: 
                type: "same_as"
                ref: "device.content.id"
            device_type: 
                type: "same_as"
                ref: "device.content.device_type"

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by AlexMikhalev
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #327 on September 04, 2022 22:59.