Skip to content

Correct Graph type contracts in 1.0.0 and 1.1.0-preview - #338

Open
Taofeek F. Obafemi-Babatunde (FehintolaObafemi) wants to merge 3 commits into
mainfrom
fix/generated-contracts-1.0.1
Open

Taofeek F. Obafemi-Babatunde (FehintolaObafemi) wants to merge 3 commits into
mainfrom
fix/generated-contracts-1.0.1

Conversation

@FehintolaObafemi

@FehintolaObafemi Taofeek F. Obafemi-Babatunde (FehintolaObafemi) commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Goal: Correct unsupported property writes in 1.0.0 and 1.1.0-preview for both Graph APIs while preserving version-specific schemas and emitted deployment inputs.

Changes

  • Correct read-only typing for group isManagementRestricted and serviceProvisioningErrors, application disabledByMicrosoftStatus and verifiedPublisher, and service-principal disabledByMicrosoftStatus.
  • Apply the corrections directly to both existing extension versions, for both beta and v1.0. Remove the superseded 1.0.1 artifacts.
  • Preserve writable/conditional service-principal inputs, readable outputs, stable relationship strings, enhanced preview relationship objects, version indices, runtime metadata, and the preview default.
  • Add validated versioned property-description overrides and restricted-management guidance. Regenerate all four type sets from their versioned Swagger snapshots; stable v1.0 regeneration also repairs six previously corrupted URI descriptions.
  • Add explicit generator version selection and regression tests. Integrate current main without rewriting branch history.

Addresses the proven contract gaps in #257 and #260, the ordinary-property guard associated with #206, and the evidenced subset of #263. This does not implement publisher-verification actions or resolve all service-principal semantics.

Validation

  • 103 Jest tests across 13 suites pass, including the real pinned-CSDL producer and both Swagger/artifact locations for each version/API combination.
  • Swagger TypeScript checks and AutoRest/generator builds pass. Four version-specific .NET tests load the actual embedded type artifacts successfully.
  • All four serialized type graphs match their original versions exactly after allowing the 18 intended flag changes and description updates. Version indices and runtime metadata are unchanged.
  • Sixteen matched base/head Bicep 0.48.1 builds pass. Positive cases have no read-only warnings; corrected negative cases have five BCP073 warnings each. The complete emitted ARM JSON is exactly identical between base and head for every matched scenario.
  • Explicit stable/preview generation, default-latest generation, invalid-version rejection, and unsupported internal/preview rejection were exercised. After review identified incompatible legacy shapes, explicit selection was restricted to the two requested versions; three legacy selectors and an unknown selector were verified to fail before creating outputs.

Boundaries and existing blockers

  • The full .NET suite has five passes and two failures. Both failures also reproduce on clean main: the unchanged root index references missing beta/1.0.1-preview/types.json. All four new version-specific tests pass.
  • Full Swagger lint has 19 existing errors. Generator lint is blocked by the existing header-rule/ESLint 9 configuration incompatibility. Changed-source diagnostics match the base; generator comparison excludes only that broken header rule.
  • Automatic isolated review completed with two independent assessments and lead reconciliation. Both identified the same selector defect; it was fixed, validated, and re-reviewed with no unresolved material findings. Review used the individual-agent fallback because orchestration MCP was unavailable; the complementary reviewer's model family could not be verified.
  • No live tenant deployment, OCI publication, or replacement of published/cached packages was performed. Compiler compatibility is demonstrated for the tested scenarios, not every deployment. Warning-rejecting custom gates can be affected.

Keep this PR draft pending the normal CI, human-review, and publication gates.

Goal: Correct stable Graph Bicep read-only authoring contracts while preserving readable outputs, conditional service-principal inputs, and published 1.0.0 artifacts.

Add versioned schemas, generated artifacts, regression tests and upgrade guidance. Preserve description overrides and serialized JSON/Markdown contents during generation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: db906020-1a67-43c3-b0eb-80e95473e9d5
Goal: Correct unsupported property writes in 1.0.0 and 1.1.0-preview for both Graph APIs while preserving version-specific schemas and emitted deployment inputs.

Integrate current main, remove superseded 1.0.1 artifacts, regenerate the existing versioned snapshots, and validate guards, readable outputs, preview relationships and compiler compatibility.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: db906020-1a67-43c3-b0eb-80e95473e9d5
Goal: Restrict explicit regeneration to the two requested schema-compatible versions and reject unsupported legacy versions before any output writes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: db906020-1a67-43c3-b0eb-80e95473e9d5
@FehintolaObafemi Taofeek F. Obafemi-Babatunde (FehintolaObafemi) changed the title Fix stable 1.0.1 Graph type contracts and generation validation Correct Graph type contracts in 1.0.0 and 1.1.0-preview Dec 4, 2026
@FehintolaObafemi
Taofeek F. Obafemi-Babatunde (FehintolaObafemi) marked this pull request as ready for review December 4, 2026 23:52
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.

1 participant