Skip to content

Commit

Permalink
fix(api) remove color from corridor schema
Browse files Browse the repository at this point in the history
Gets overwritten by the api if given by the user.
  • Loading branch information
helderbetiol committed Jan 31, 2024
1 parent 465412a commit e4220a4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions API/models/schemas/corridor_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@
"type": "string",
"$ref": "refs/types.json#/definitions/metricImperialUnit"
},
"color": {
"type": "string",
"$ref": "refs/types.json#/definitions/color"
},
"temperature": {
"type": "string",
"enum": [
Expand All @@ -66,7 +62,6 @@
"examples": [
{
"attributes": {
"color": "000099",
"content": "B11,C19",
"temperature": "cold",
"height": "47",
Expand Down
2 changes: 1 addition & 1 deletion APP/lib/widgets/select_objects/object_popup.dart
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ class _ObjectPopupState extends State<ObjectPopup> {
for (var def in defs.keys.toList()) {
if (defs[def]["descriptions"] != null) {
types["refs/types.json#/definitions/$def"] =
"${localeMsg.shouldBe} ${defs[def]["descriptions"][language]}";
"${defs[def]["descriptions"][language]}";
} else if (defs[def]["enum"] != null) {
types["refs/types.json#/definitions/$def"] =
"${localeMsg.shouldBeOneOf} ${defs[def]["enum"]}";
Expand Down

0 comments on commit e4220a4

Please sign in to comment.