Skip to content

simplification of header #4

@janbrouwer

Description

@janbrouwer

Until now I have been creating (optional) headers for IFCJSON files like this:

{
    "header": {
        "file_description": {
            "description": "ViewDefinition [CoordinationView]",
            "implementation_level": "2;1"
        },
        "file_name": {
            "name": "7m900_tue_hello_wall_with_door.json",
            "time_stamp": "2020-05-30T09:18:25",
            "author": "",
            "organization": "",
            "preprocessor_version": "IFC-manager for SketchUp (3.0.1)",
            "originating_system": "SketchUp Pro 2018 (18.0.16975)",
            "authorization": ""
        },
        "file_schema": "IFC2X3"
    },
    "data": [
        {
            "type": "IfcProject",

I propose to change it to something like this:

{
    "type": "ifcjson",
    "file_description": {
        "description": "ViewDefinition [CoordinationView]",
        "implementation_level": "2;1"
    },
    "file_name": {
        "name": "7m900_tue_hello_wall_with_door.json",
        "time_stamp": "2020-05-30T09:09:10",
        "author": "",
        "organization": "",
        "preprocessor_version": "IFC-manager for SketchUp (3.0.1)",
        "originating_system": "SketchUp Pro 2018 (18.0.16975)",
        "authorization": ""
    },
    "file_schema": "IFC2X3",
    "data": [
        {
            "type": "IfcProject",

Where I added a main "type", and flattened the "header" section.
That main type could be mandatory because it tells a parser that it can expect "ifcjson" data.
The STEP style file_description, file_name and file_schema could also be further flattened or simplyfied by stripping the "file_".

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions