Skip to content

Conversation

@haydenbaker
Copy link
Contributor

Description of changes:

  • Adds support for generating operation and service schemas:
GET_FORECAST = Schema(
    id=ShapeID("example.weather#GetForecast"),
    shape_type=ShapeType.OPERATION,
    traits=[
        ...
        Trait.new(id=ShapeID("smithy.api#readonly")),
    ],
)
...
WEATHER = Schema(
    id=ShapeID("example.weather#Weather"),
    shape_type=ShapeType.SERVICE,
    traits=[
        ...
        Trait.new(id=ShapeID("aws.protocols#restJson1")),
    ],
)
  • Fixes a couple of extraneous issues as well
    • Incorrect dep in example package
    • Bad import when code generating a client for a model that doesn't use the httpHeader trait
      • serialize.py:8:25 - error: Import "Field" is not accessed (reportUnusedImport)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@haydenbaker haydenbaker requested a review from a team as a code owner March 8, 2025 00:46
@haydenbaker haydenbaker changed the title Haydenbaker/add operation and service schemas Add support for operation and service schemas Mar 8, 2025
@haydenbaker haydenbaker changed the base branch from http-schema to develop March 10, 2025 15:16
@haydenbaker haydenbaker force-pushed the haydenbaker/add-operation-and-service-schemas branch 2 times, most recently from 8053e04 to abd250a Compare March 10, 2025 15:48
@haydenbaker haydenbaker force-pushed the haydenbaker/add-operation-and-service-schemas branch from abd250a to 9e1bc18 Compare March 10, 2025 16:28
@haydenbaker haydenbaker merged commit 7f53a5e into develop Mar 10, 2025
2 checks passed
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.

2 participants