Skip to content
Snippets Groups Projects
Select Git revision
2 results Searching

codegen-server

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    david-perez authored and GitHub committed
    * Fix `@length`-constrained collection shapes whose members are not constrained
    
    The generated code these should have emitted was fixed in #2085 (it's
    bug number 2), but code generation is still crashing because the call to
    calculate the inner constraint violation symbol is performed _before_
    checking that the collection's member can reach a constrained shape.
    
    The test that #2085 added in `constraints.smithy`:
    
    ```smithy
    @length(max: 69)
    list LengthList {
        member: ConB
    }
    ```
    
    was not exercising what it should have, since `ConB`, is its name hints
    at, is a constrained structure shape.
    
    * Add changelog entry
    
    Co-authored-by: default avatarJulian Antonielli <julianantonielli@gmail.com>
    0dd6c82e
    History
    Name Last commit Last update
    ..