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

Support implicit values in JSON models #154

Merged
merged 2 commits into from Apr 5, 2019
Merged

Conversation

LPGhatguy
Copy link
Member

@LPGhatguy LPGhatguy commented Apr 5, 2019

Closes #31. Closes #144.

This PR makes JSON model files more friendly by letting them use implicit property values.

Previously, your .model.json file might look like:

{
  "Name": "explicit",
  "ClassName": "StringValue",
  "Properties": {
    "Value": {
      "Type": "String",
      "Value": "Hello, world!"
    }
  }
}

Now, for many property values, you can instead write:

{
  "Name": "explicit",
  "ClassName": "StringValue",
  "Properties": {
    "Value": "Hello, world!"
  }
}

This change happened for project files a few releases ago, but the JSON model format wasn't updated to match.

@LPGhatguy LPGhatguy merged commit f290e7b into master Apr 5, 2019
@LPGhatguy LPGhatguy deleted the implicit-json-models branch April 5, 2019 22:18
Dekkonot pushed a commit to UpliftGames/rojo that referenced this pull request Jan 11, 2024
* Support implicit values in JSON models

* Update Changelog
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

Successfully merging this pull request may close these issues.

None yet

1 participant