-
Notifications
You must be signed in to change notification settings - Fork 38
Document enum values individually #497
Comments
This is a blocker for mapbox/mapbox-gl-native#5953, which is blocking the iOS SDK v3.4.0 release. (The Objective-C enum values need to be individually documented; otherwise, the symbols are entirely omitted from documentation.) |
Taking a look at this. |
The places I know that are downstream users of
|
Mapbox studio will need to be updated based on this change well. |
More uses in mapbox-gl-native: |
@samanpwbb Is this something I should start looking into, or is it easier for someone already in Studio to handle? |
Studio team can take care of this when we upgrade the style spec version. Just something we'll need to be aware of. Worth ticketing downstream. |
As proposed this is a breaking change to the style spec, with all the associated 😭. The same content can be added in a non-breaking way:
|
@scothis We've already put the work into updating the places that need updating in this repository and mapbox-gl-native. Unless it's going to be a huge amount of work to adjust Studio, I'd like to continue with the change as implemented. |
@jfirebaugh I'm not worried about Studio, it's the downstream users we're not aware of. If you're comfortable making a breaking change without bumping the major version number, just be aware of what you're doing. We don't advertise that the project follows semver, but it's certainly the expectation. |
My understanding – correct me if I’m wrong – is that the version number tracks the content of the style specification, not any particular representation of it. There are a number of tools in this repository that could be individually versioned if we chose to, such as diff.js or indeed the JSON-formatted representation. |
Didn't mean to cut off discussion here. #510 needed to happen regardless. We can reopen here or continue elsewhere the versioning discussion fallout. |
I think this PR brings to the fore (but is not the first to introduce) a question about the intended purpose of the affected file. Automatic documentation generation is one thing; a JSON schema precisely describing the data structure is another. A JSON file that is optimal for one of these purposes might very well not be very good for the other. I wonder if it wouldn't be a good idea to create separate files to serve these separate ends. Or if not that, we might want to reconsider the JSON structure more generally to allow for changes like this one in the future without breaking things. |
Change:
To:
Then the generated docs can list the enum values with their documentation in a definition list.
The text was updated successfully, but these errors were encountered: