M006 — integer_representation_item serialized without trailing decimal point

§12.8 (sub-class: validation-property encoding)

P1 — silent data loss

syntax

Sources

Description

`integer_representation_item.the_value` is logically INTEGER but Part 21 emits it as REAL because the attribute was redeclared from NUMBER. Files where it appears without a trailing dot are non-conforming, and many writers do exactly that. Strict-parse-as-REAL fails; falling back to INTEGER works but cannot validate.

Reproducer recipe

Write `INTEGER_REPRESENTATION_ITEM('number of children', 4)` (no decimal). Compare with conformant `INTEGER_REPRESENTATION_ITEM('number of children', 4.)`.

Expected kernel behavior

Heal and accept on import for compatibility (both forms); write the trailing-dot form on export.

Notes

Synonyms: "integer_representation_item missing dot", "INTEGER serialized as REAL", "Part-21 INTEGER without trailing decimal", "non-conforming integer encoding".

Expected validation

occt=shape(1)/shape(1) gmsh=shape(6) ifc=schema_n/a

Byte assertions

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* M006: GEOMETRIC_CURVE_SET containing INTEGER_REPRESENTATION_ITEM without trailing decimal point; integer_representation_item.the_value redeclared from NUMBER to INTEGER in schema; non-conforming writers emit INTEGER without trailing dot (e.g., 4 instead of 4.); strict-parse-as-REAL fails on integers without dot; INTEGER_REPRESENTATION_ITEM('number of faces',6) — no trailing decimal on 6; kernel must heal and accept both forms on import; write trailing-dot form on export; GEOMETRIC_CURVE_SET IS the model entity — OCC yields empty; synonyms: integer_representation_item missing dot, INTEGER serialized as REAL, Part-21 INTEGER without trailing decimal, non-conforming integer encoding */
3HEADER;
4FILE_DESCRIPTION(('M006'),'2;1');
5FILE_NAME('M006.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('AP242_MANAGED_MODEL_BASED_3D_ENGINEERING_MIM_LF { 1 0 10303 442 1 1 4 }'));
7ENDSEC;
8DATA;
9#9000=APPLICATION_CONTEXT('mechanical design');
10#1=CARTESIAN_POINT('',(0.0,0.0,0.0));
11#2=CARTESIAN_POINT('',(1.0,0.0,0.0));
12#3=CARTESIAN_POINT('',(2.0,0.0,0.0));
13#4=CARTESIAN_POINT('',(3.0,0.0,0.0));
14#5=CARTESIAN_POINT('',(4.0,0.0,0.0));
15#6=CARTESIAN_POINT('',(5.0,0.0,0.0));
16#7=INTEGER_REPRESENTATION_ITEM('number of faces',6);
17#8=INTEGER_REPRESENTATION_ITEM('number of children',4);
18#9=GEOMETRIC_CURVE_SET('integer-repr-item-missing-dot',(#1,#2,#3,#4,#5,#6,#7,#8));
19#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
20#9051=PRODUCT('M006','M006','',(#9050));
21#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
22#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
23#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
24#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
25#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
26#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
27#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
28#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
29#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
30#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9),#9060);
31#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
32ENDSEC;
33END-ISO-10303-21;