Skip to content

test: added EIA integration tests#56

Merged
tutkat merged 13 commits into
mainfrom
addEiaTests
Jun 26, 2026
Merged

test: added EIA integration tests#56
tutkat merged 13 commits into
mainfrom
addEiaTests

Conversation

@tutkat

@tutkat tutkat commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@tutkat tutkat requested review from a team as code owners June 24, 2026 10:41
@tutkat tutkat changed the title tests: added EIA integration tests test: added EIA integration tests Jun 24, 2026
@equinix equinix deleted a comment from github-actions Bot Jun 24, 2026
tutkat and others added 12 commits June 24, 2026 12:48
…ch EIA routing protocol Gson conflict

Setting the flag to true made all generated models strict, rejecting
real API fields (e.g. Port.cvpId) and breaking deserialization broadly.
Revert to false (tolerant additionalProperties) and instead fix the
EIA routing protocol Gson 'multiple JSON fields additionalProperties'
collision via patch 002 (applied in patch-post after regeneration).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…mplate

With disallowAdditionalPropertiesIfNotPresent=false every model gets an
additionalProperties holder. For allOf-inheritance models this produced
the field in BOTH parent and child, causing Gson to fail at runtime:
'declares multiple JSON fields named additionalProperties'.

Vendor pojo.mustache + additional_properties.mustache and wrap the
additionalProperties field/accessors/equals/hashCode/toString in
{{^parent}} so only root classes declare it; children inherit it.
Fixes the collision for all ~126 inheritance models at once, so the
per-class patch 002 is no longer needed and is removed.

Validated by regenerating the full SDK with this template: it compiles,
Port stays tolerant (accepts unknown fields like cvpId), and the
InternetAccess routing protocol children no longer duplicate the field.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…espace churn

The {{^parent}} guard was placed on the same line as
{{#isAdditionalPropertiesTrue}}, so jmustache no longer treated those
lines as standalone and emitted their trailing newlines, adding blank
lines to every generated model (huge no-op diff after sync).

Put each section tag on its own line so they are stripped as standalone.
Verified: root models (e.g. Port) regenerate byte-identical to stock,
children only lose the duplicated additionalProperties, full SDK compiles.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The API omits 'order' in InternetAccessService responses (e.g. while
PROVISIONING), but the spec marks it required, so the generated
validateJsonElement threw 'The required field order is not found'.

Drop 'order' from the schema's required list. Apply it both to the
committed oas3.patched (consumed by codegen) and as a spec patch so a
full spec re-sync re-applies it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- completed
workflow_dispatch:
pull_request:
types: [labeled]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

depends on a 'run-fabric-tests' label to be created. ok. conditional looks ok to me to run when we want it and not otherwise.

@tutkat tutkat merged commit 75ffd61 into main Jun 26, 2026
3 checks passed
@tutkat tutkat deleted the addEiaTests branch June 26, 2026 15:27
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.

3 participants