You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A data producer MAY use any suitable serialization format. A data consumer MUST support JSON serialization format and > MAY support other serialization formats like YAML or TOML.
The above states that JSON is the only serialization format that MUST be used for publishing
The data producer is the publishing agent, so either it MUST use JSON or it MAY use JSON. I guess you meant to say something like
A data producer MUST publish JSON but it MAY use any suitable serialization format to create JSON from.
@nichtich
The point was that one can serialize a descriptor using any format, but only JSON is guaranteed to be understood by consumers. It reflects that we can't forbid e.g. frictionless-py or Open Data Editor generate YAML descriptors but we can state that it's not acceptable for external data publishing
Sorry, but this reads like "please use JSON and name the file datapackage.json but you can also use anything else" so nothing is guaranteed. The fact that JSON can internally be serialized in YAML, TOML etc. should better be a sidenote but not part of the specification.
The extra text in this PR makes sense. But it also includes relaxing the format and the datapackage.json name. I think it is fine to relax the format for internal use, but the text should be clearer on "publishing" (the "The above states..." is unclear to me). Personally, when provided/published as a JSON file, I think it should remain being called datapackage.json.
I'll put this under the draft label to take some extra time working on it as, it will be probably better if we move the definitions in one place (like glossary/terminology spec) instead of duplicating it in all the specs
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
None yet
3 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
It's the first attempt to clarify the specifications serialization and discoverability. Also it deals with often requested YAML