Skip to content

schema_utils.py KeyError #1736

@JacksonJ-KC

Description

@JacksonJ-KC

Creating this issue for tracking purposes. I think this may be related to schema version updates. I can't spend much more time looking into this at the moment.

line 219, in return_json_schema_reference
return properties_dict["items"]["$ref"].split("/")[-1]
KeyError: '$ref'

Variables in debug:

key = 'primary_layers'
properties_dict = {
    'description': 'List of names, or IDs, of layer descriptions starting from the outside surface for primary heat path',
    'items': {}, 
    'notes': 'For constructions with framing and cavity heat transfer paths, use this for the cavity. For constructions with homogeneous layer, use this element only. Air films should not be included in the list of layers. When Construction.primary_layers are specified, the Construction.r_values should not be used. The list of primary_layers should include at least one Material that has mass with Material.density and Material.specific_heat specified. A list of material data groups can either appear here or a list of references to IDs of a Materials already defined somewhere else or a mixture of both. When a reference is used, the constraint to use when implemented is to :Material:', 
    'type': 'array'
}

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions