- Added a transform to mark required idempotency tokens client optional (#2466)
- Updated the IDL serializer to write metadata to a separate file (#2464)
- Expanded the
title
trait to be applicable to any non-member shape (#2461) - Added a pagination flattening transform (#2454)
- Added transforms to remove deprecated shapes (#2452)
- Relaxed the pattern on the
@defineConditionKeys
trait's keys to enable inferring theservice
to be the service'sarnNamespace
(#2450) - Added the
useInlineMaps
JSONSchema setting to allow users to configure JSON Schema conversion to inline converted map shapes instead of creating references (#2449) - Updated the CFN resource schema generation to fill in the permissions field of the tagging configuration for resources (#2446)
- Added
resourceDelimiter
andreusable
properties to thearn
trait (#2440) - Added a validator for the xmlFlattened trait that checks if the member's target is a list that has a member with xmlName, and that xmlName doesn't match the name of the xmlFlattened member (#2439)
- Updated CloudFormation resource schema conversion to be round-trippable (#2445)
- Fixed for tagsProperty in CFN schema creation (#2444)
- Deferred the
scrubTraitDefinitions
call inside JSON Schema deconflicting to happen only when the model is in a state that would have an avoidable conflict (#2435) - Updated the
ChangedMemberTarget
diff evaluator to properly check changes to map keys and values the same way it checks changes to list members (#2434)
- Updated blob defaults for protocol tests (#2467)
- Downgraded a noisy log statement (#2451)
- Fixed the CBOR type for blobs in RPCv2 CBOR protocol tests (#2447)
- Updated protocol tests to use lower-cased headers (#2437)
- Updated server protocol tests to assert serialization of empty headers (#2433)
- Lowered the severity of
UnboundTestOperation
toWARNING
(#2432)
- Fixed several minor issues with IAM trait class implementations (#2427)
- Fixed an issue where several protocol test operations were not bound to services (#2426)
- Fixed the name of XML root nodes in the protocol tests (#2423)
- Added validator for identifiers missing references (#2418)
- Added checksum algorithm to model enum (#2419)
- Updated the
httpChecksum
trait spec (#2413) - Added
breakingChanges
to thehttpChecksum
trait (#2398) - Use the most common suffix for IDL inline IO (#2397)
- Fixed the name of XML root nodes in the protocol tests (#2423)
- Fixed trait codegen to properly support lists of enums (#2420)
- Update RPC v2 CBOR spec to require an Accept header for requests (#2417)
- Changed prefix header tests to allow for empty headers (#2415)
- Fixed OpenAPI plugin to properly support effective documentation precedence (#2402)
- Fixed a bug in the
SigV4
diff logic that assumed that the a service exists in the old operation (#2405) - Added
NodeValidationVisitor
checks for invalid nulls (#2393)
- Updated the
httpChecksum
trait spec to clarify the expected behavior and added the supported algorithms (#2413) - Fixed the
httpChecksum
algorithm list in spec (#2394) - Fixed a broken link to smithy-rs design document in Code Gen documentation. (#2416)
- Fixed resource type typo in AST docs (#2410)
- Fixed small typos in full stack tutorial (#2389)
- Added the
:recursive
selector function to enable recursively traversing relationships. (#2353) - Added validation of
intEnum
shapes to theNodeValidationVisitor
. (#2357) - Added various protocol tests. (#2333, #2342)
- Added elliptic curve cryptography module to the Smithy CLI for communicating with certain package managers. (#2379)
- Added a warning when the
@idempotencyToken
trait is applied where it would be ignored. (#2358) - Added validation for the
@httpChecksum
trait'sresponseAlgorithms
property. (#2371) - Updated list of supported
@httpCheckum
algorithms. (#2386) - Improved the performance of the
BottomUpIndex
. (#2367)
- Fixed formatting of
resource
shapeidentifiers
andproperties
fields. (#2377) - Fixed issue with parsing different types of documentation comments. (#2390)
- Fixed issue that would cause shape conflicts when loading the same model twice that uses
apply
on a member from a mixin. (#2378) - Fixed issue with generating CFN resource schema handler permissions for
@noReplace
resources. (#2383) - Fixed several classes of bugs in the
AwsTagIndex
. (#2384) - Fixed various issues with protocol tests. (#2336, #2340 #2341)
- Added full-stack application tutorial. (#2362)
- Added documentation to several places in the
smithy-aws-endpoints
trait definitions. (#2374) - Added note on
smithy-build.json
supporting//
based comments. (#2375) - Clarified documentation for resolving auth schemes from endpoint rule sets. (#2382)
- Fixed various documentation issues. (#2346, #2363)
- Added a
required
property to IAM trait condition key definitions. (#2288) - Added
syncCorsPreflightIntegration
configuration option to APIGateway conversion, which updates CORS preflight templates with all possible content types. (#2290) - Added validator for duplicate names in the
iamResource
trait. (#2293) - Added
operationContextParams
support toRulesetParameterValidator
. (#2295) - Enabled the application of example traits to service-level errors. (#2307)
- Added IDL serializer option to coerce inline IO. (#2316)
- Added a function to writer delegators to check out writers with a symbol. (#2328)
- Added defaults tests for restJson1. (#2280)
- Added float16 upcast tests for RPCv2 CBOR. (#2291)
- Added protocol tests for content-type parameters. (#2296)
- Added protocol tests asserting servers reject empty unions. (#2300)
- Added protocol tests for malformed media types. (#2309)
- Added protocol tests for missing content types. (#2310)
- Added several content-type and HTTP payload protocol tests. (#2314, #2315, #2322, #2331)
- Fixed formatter to correctly convert invalid doc comments. (#2277)
- Added missing node mapper for document types. (#2313)
- Fixed issues with S3 dot segment tests. (#2304)
- Fixed several issues in RPCv2 CBOR protocol tests. (#2319, #2320)
- Updated protocol tests to use floating point values representable exactly in IEEE representation. (#2321)
- Fixed EC2 request ID casing. (#2329)
- Fixed typos in RPCv2 CBOR spec. (#2278)
- Fixed typo in AddDefaultConfigSettings. (#2285)
- Fixed errors in IAM trait docs. (#2287)
- Clarified RPCv2 response event stream behavior. (#2297)
- Replaced references to outdated RFCs with references to their replacements. (#2298)
- Clarified
httpResponseCode
value range. (#2308)
- Added list and map shapes to directed codegen. (#2273)
- Added support for defaults on trait member values in trait-codegen. (#2267)
- Added support for string-arrays for as parameters in rules-engine. (#2266)
- Added new trait (
@operationContextParams
) for binding array parameters to nested operation inputs in the rules-engine. (#2264)
- Fixed bug in the formatter where comments in operation errors were not being handled correctly. (#2283)
- Fixed bug in the formatter where certain documentation comments were being converted to line-comments. (#2277)
- Fixed incorrect status code in restXml response protocol test. (#2272)
- Fixed ec2query protocol test for empty list serialization. (#2269)
- Fixed Javadoc integration for documentation in members and enum variants in trait-codegen. (#2265)
- Fixed timing issue in the delay calculation for waiter retries. (#2259)
- Corrected a typo in RPCv2 CBOR specificaiton. (#2278)
- Updated casing of aggregate shape names in shape type table. (#2271)
- Updated HTTP binding validation to allow for specificity routing. (#2220)
- Added support for the
deprecated
trait in OpenAPI conversion. (#2221, #2222) - Added protocol tests for nested XML maps with XML names. (#2236)
- Added diff validation for services that migrate from sigv4 to sigv4a. (#2245)
- Emit a
NOTE
validation event on ignored duplicate shapes. (#2247) - Added strongly typed properties for
TypedPropertiesBag
. (#2248) - Updated trait code generation to use strongly typed property bags. (#2254)
- Added a Smithy Diff test runner. (#2250)
- Added captializing formatter for use in trait code generation and normalized symbol references to reduce false positive duplicates. (#2255)
- Removed incorrect
Content-Type
from no-body XML payload protocol test. (#2218) - Fixed header expectations in RPCv2 protocol tests. (#2246)
- Fixed
ModifiedTrait
validation for traits with breaking change rules. (#2249)
- Fixed Gradle plugin version in documentation. (#2226)
- Updated the Gradle migration guide caption. (#2227)
- Updated installation instructions for the Smithy CLI. (#2229)
- Added missing commas in JSON AST docs. (#2230)
- Fixed incorrect reference to the
traitValidators
trait in the protocol definition trait. (#2241)
- Added the
smithy-trait-codegen
package. This package provides a newtrait-codegen
plugin that can be used to generate Java implementations of Smithy traits, removing the need to hand-write most trait implementations. (#2074) - Added the
@smithy.protocols#rpcv2Cbor
protocol trait. Smithy RPC v2 CBOR is an RPC-based protocol over HTTP that sends requests and responses with CBOR payloads. This trait is available in the newsmithy-protocol-traits
package, with protocol tests available in the newsmithy-protocol-tests
package. (#2212) - Updated several protocol tests around the
@sparse
trait to ease implementation. (#2206) - Remove content-type from no XML body protocol test. (#2218)
- Fixed a bug where all shapes would fail to load in a file if a mixin was missing. (#2214)
- Clarified HTTP protocol compliance test
params
field docs. (#2202)
- Added protocol tests for
null
values in unions. (#2180) - Updated
ec2QueryName
tests to reflect usage. (#2186) - Updated model validation and protocol tests to use the new Gradle plugins. (#2176)
- Added data-shape-only visitor class. (#2168)
- Added protocol tests for S3 when dots are part of a key segment. (#2166)
- Added the
@traitValidators
trait that can constrain shape closures. (#2156) - Added logic to infer default inline I/O suffixes in the IDL serializer. (#2122)
- Added annotation processor base class for executing Smithy-Build plugins. (#2073)
- Fixed a bug when creating
@standardRegionalEndpoints
nodes. (#2179) - Fixed Windows CI errors by removing no-cone on git add command. (#2168)
- Fixed the
RestJsonZeroAndFalseQueryValues
protocol test. (#2167) - Properly fix multi-mixin members in shape build. (#2157)
- Fixed text block incidental whitespace handling. (#2147
- Fixed issues with
AbstractCodeWriter
state stacks. (#2142)
- Remove incorrect
jsonName
protocol info. (#2187) - Fixed minor formattting. (#2175)
- Added CLI and Groovy examples to guides. (#2165)
- Updated quickstart example to use terse input/output syntax. (#2163)
- Updated OpenApi guide to use new gradle plugin and cli. (#2161)
- Updated Gradle quickstart example to include empty
smithy-build.json
. (#2149) - Multiple updates of the Gradle plugin after the 0.8.0 release. (#2140, #2146, #2139, #2148)
- Added new option to CLI to configure the format (
text
orcsv
) of validation output. (#2133) - Added options to CLI to hide or show validation events for specified validators. (#2127)
- Added protocol tests for verifying serialization/deserialization behavior for maps with document values. (#2125)
- Changed
UnreferencedShape
to be an opt-in linter instead of on-by-default to reduce friction when defining common shapes that are not connected to a service shape. Added a validator that allows you to configure what shape to check connectedness (defaults to service shape). (#2119)
- Fixed headers when printing validation event output in csv format. (#2136)
- Fixed
RestJsonZeroAndFalseQueryValues
protocol test to correctly include a params value for servers. (#2132) - Fixed regression in model validation that incorrectly allowed suppression of ERROR events. (#2130)
- Fixed typo in @pattern validation example. (#2126)
- Add AWS smoke test model package. (#2113)
- Add more traits to protocol test services (#2117)
- Enable custom inline suffixes in IDL serializer (#2121)
- Keep trailing doc comment spaces in IDL serializer (#2116)
- Expand protocol tests for default values. (#2049)
- Add protocol tests for 0/false in query params. (#2070)
- Change line break formatting in brackets. (#2072)
- Add backticks to diff messages for trait changes. (#2075)
- Support internal trait when building synthetic enum trait. (#2106)
- Add "critical" validation phase to validation. (#2098)
- Deprecated IAM Action traits that are now formally superseded by
@iamAction
. (#2095) - Added ability to override AWS endpoints partitions when needed. (#2092)
- Fail when duplicate members are found in enum/intEnum shapes. (#2112)
- Check references via idRef when looking for unreferenced shapes. (#2105)
- Remove service renames after flattening namespaces. (#2109)
- Fixed issue where endpoint modifier traits without a valid shape definition were being indexed. (#2096)
- Upgrade sphinx for docs. (#2100)
- Updated several of the guide sections and tidied up the layout. (#2097)
- Updated
RemovedShape
diff event severity fromERROR
toWARNING
for scalar shapes. (#2037) - Made
parameterizedTestSource
public, allowing users to use a customized suite as a source for JUnit parameterized tests. (#2087) - Refactored
ReplaceShapes
transform to improve efficiency. (#2082) - Added validation for endpoint patterns used by
standardRegionalEndpoints
andstandardPartitionalEndpoints
. (#2069) - Added support for CLI dependency resolution via proxy. (#2076)
- Improved efficiency of
ReplaceShapes
transform by only building container shapes once when multiple members are changed. (#2081) - Moved
allowOptionalNull
toNodeValidationVisitor.Feature
. (#2080) - Added rules engine built-in for
AccountIdEndpointMode
. (#2065) - Added JReleaser config. (#2059)
- Added ability to find all operations for which a shape is used as an input, output, or error. (#2064)
- Split InputOutput shapes into separate request and response shapes for
restXml
protocol tests. (#2063)
- Fixed an issue where
@iamAction
wasn't reflected in CFN resource schema creation. (#2091) - Fixed tree node start and end locations. (#2084)
- Fixed several minor build warnings. (2089)
- Fixed protocol test service signing name for
awsJson1_1
protocol. (#2089) - Updated member removal for
ReplaceShapes
transform to ensure enum and intEnum members are correctly removed. (#2082) - Corrected erroneous outer tags in
restXml
protocol tests (#2071)
- Added documentation for configuring CLI dependency resolution via proxy. (#2083)
- Added the
@aws.auth#sigv4a
auth trait. (#2032) - Added the
timestampFormat
andhttpChecksumRequired
traits to protocols. (#2054, #2061)
- Fixed conversion of root
intEnum
shape to IDL 1.0 when the shape doesn't have a default value of 0. (#2053) - Fixed equality of
@examples
traits by overriding theequals
method inExampleTrait.ErrorExample
. (#2052)
- Added support for
sdkId
s with a single character (#2043)
- Fixed
toShapeId
call inEndpointModifierIndex
(#2044) - Fixed removal of applied non-prelude meta traits (#2042)
- Fixed
recommended
trait provider to avoid discardingreason
(#2041)
- Updated the javadoc of
ValidatedResult.unwrap
to note thatDANGER
events also throw a validation event (#2040)
- Added new member to
@aws.iam#iamResource
for disabling condition key inheritance. (#2036) - Added new trait for defining IAM actions, which consolidates and deprecates several older IAM traits. (#2034)
- Added convenience method,
expectIntEnumShape
, toGenerateIntEnumDirective
to get anIntEnumShape
(#2033) - Added plugin to
NodeValidationVisitor
to ensure collections with@uniqueItems
trait have unique-ness enforced. (#2031) - Added new member to
@aws.iam#iamResource
and@aws.iam#defineConditionKeys
traits for defining a relative URL path of documentation. (#2027) - Migrated IAM traits JSON file to IDL file in
smithy-aws-iam-traits
. (#2026) - Added protocol test for verifying behavior when handling unknown union members in the
restJson1
protocol. (#2022) - Enabled
aws.iam#disableConditionKeyInference
trait to be applicable to service shapes. (#2019) - Updated
partitions.json
with two new entries,aws-iso-e
andaws-iso-f
to be consistent with SDKs. (#2018) - Added event-id subparts to
ClientEndpointDiscoveryValidator
to clarify validation events. (#2017) - Added configuration for plugin integrations in
smithy-build.json
. (#2014) - Added protocol tests for verifying behavior of default values in the
awsJson1_1
protocol. (#2002) - Added several new traits for modelling declarative endpoints. (#1987)
- Added basic website analytics so that engagement can be measured. (#2025)
- Added documentation for new traits added for declarative endpoints. (#2013)
- Fixed handling and deconflicting of duplicate apply statements targetting mixed-in members (#2030)
- Fixed an NPE in the
PluginContext.toBuilder
method inPluginContext
. (#2028) - Fixed a trait parse error for shape IDs. #2023)
- Fixed several major issues with how neighbors and model graph traversal was implemented. (#2020)
- Added expect-check to mitigate NSE exception in
PrivateAccessValidator
. (#2015) - Fixed equality of
@examples
traits by overriding theequals
method inExampleTrait
. (#2009)
- Added new protocol tests for the
restXml
protocol, which assert request/response behaviors for string payloads. (#2007) - Added new package,
smithy-smoke-test-traits
, which defines the traits for smoke tests. This package contains the smithy model definitions of said traits, their java implementations, and unit tests. (#2005) - Added auth-scheme validator that runs for SigV4 sub-schemes as part of the AWS rule-set in
smithy-rules-engine
. (#2000) - Added
AccountId
andCredentialScope
parameters for AWS-specific endpoint rules insmithy-rules-engine
. (#1993)
- Added traits anchors for a few traits that were previously missing. (#2008)
- Added
Smithy Examples
embedding to the smithy.io sidebar underProject
. (#2006) - Added important notice for the
@contextParam
trait to clarify expected behavior of clients when@required
is used on the same member.(#1999)
- Fixed missing source-locations in emitted events by
smithy-diff
. Previously,N/A
would be displayed instead of the real location. (#2001) - Added missing method override in
smithy-rules-engine
. (#1998) - Fixed bug where properties of resource shapes were not being serialized in the IDL serializer. (#1996)
- Fixed an issue with OpenAPI conversion not allowing multiple errors for a single status code with an opt-in that uses
oneOf
to de-conflict the errors. (#1995)
- Fix several issues with validating
authSchemes
configurations for endpoints in thesmithy-rules-engine
package for both AWS and non-AWS issues. (#1990)
- Refactored
smithy-rules-engine
significantly in an effort to improve validation, separate AWS and non-AWS concerns, add a specification, and more. General notes are provided in individual commit messages. The format of the rules documents have not changed, meaning a successful migration to the refactored codebase will involve no changes to code generated for an SDK client (#1855) - Added
Sha1
checksum toResolvedArtifacts
(#1979) - Relaxed
Content-Length
in unset union payloads protocol tests (#1984)
- Updated example by keeping operation list from previous examples (#1981)
- Updated auto-formatting to use line breaks for some properties (#1939)
- Updated JSON-based AWS protocols to ignore the
__type
field when deserializingunion
s (#1945) - Added metadata key to
RemovedMetadata
diff events (#1940) - Improved equality comparison for
NumberNode
instances (#1955, #1965) - Added
--aut
as a shortcut for--allow-unknown-traits
in the Smithy CLI (#1950) - Added a
--show
option to the Smithy CLI to include extra information like type, source location, and captured variables. This deprecates the--show-vars
option (#1953) - Added validation to emit warnings when a member has an HTTP trait applied in a context where it is ignored (#1962, #1969)
- Added validation to check the consistency of IAM resource names and ARN resource names (#1954)
- Added a
RemoveInvalidDefaults
transform to remove@default
traits when their values conflict with applied@range
traits (#1964) - Added an
allowConstraintErrors
property to the@examples
trait for relaxing content validation requirements (#1949, #1968) - Added several protocol tests for
@restXml
(#1909, #1908, #1574) - Added several protocol tests for
@restJson1
(#1908)
- Clarified how trait values are provided in the IDL (#1944)
- Added the
@length
trait to the specification's trait index (#1952) - Improved the ability to link to certain sections of the specification (#1958)
- Clarified behavior of
@sigv4
and@optionalAuth
(#1963, #1971)
- Fixed diff event messages for
ChangedNullability
events (#1972) - Fixed an NPE when auto-formatting certain types of trait values (#1942)
- Fixed an issue where exceptions thrown when creating traits were not emitted as validation events (#1947)
- Fixed an issue validating timestamp members in nodes where a
@timestampFormat
trait was involved (#1948) - Fixed an issue where the
FlattenAndRemoveMixins
transform would not remove unused mixins (#1951) - Fixed a malformed request test for the
@restJson1
protocol (#1959) - Fixed an issue where
NonInclusiveTerms
validation events would be identical for different text paths. (#1975)
- Formatted operation errors onto multiple lines (#1933)
- Added support for creating specific
TreeType
to smithy-syntax (#1925) - Added validator for services with noAuth trait (#1929)
- Added ServiceIndex method for noAuth scheme (#1924)
- Added warning on addition of required trait (#1923)
- Added versioning for API Gateway defaults (#1916)
- Added support for enum map keys with OpenApi 3.1.0 (#1905)
- Added support for suppressions to smithy-diff (#1861)
- Added
specificationExtension
trait for OpenAPI extensions (#1609) - Added
conditionKeyValue
andconditionKeysResolvedByService
traits (#1677)
- Updated
getAuthSchemes
javadoc (#1930) - Clarified
default
andclientOptional
traits (#1920) - Fixed version numbers in smithy-build.json examples (#1918)
- Clarified ordering of auth schemes in ServiceIndex (#1915)
- Included prelude in spec (#1913)
- Fixed assembler addTraits for some resource models (#1927)
- Allowed disabling format on integers when converting to OpenAPI (#1904)
- Added intEnum support when converting to OpenAPI (#1898)
- Added support for overriding validation severity (#1890)
- Added
disableDefaultValues
option when converting to OpenAPI (#1887) - Updated brew workflow to use new smithy tap (#1897)
- Added progress tracker and message for CLI while cloning a template (#1888)
- Updated init command to honor quiet setting (#1889)
- Updated appearance of smithy init list output (#1901)
- Added exceptions for invalid paths in template definition (#1907)
- Added Cache template directory in init command (#1896)
- Check for existing directory when creating template with init (#1885)
- Clarified constraint trait enforcement (#1902)
- Better document trait merging (#1895)
- Updated docs to use new smithy-lang tap (#1893)
- Added naming recommendations (#1892)
- Fixed NPE when docId is null when ServiceTrait.equals is called (#1903)
- Fixed off-by-one issues in TokenTree and TreeCursor (#1891)
- Fixed snapshot dependency resolution (#1884)
- Use standard output for regular messages (#1894)
- Enabled support for SNAPSHOT dependencies (#1853, #1857, #1884)
- Enabled default mode for
smithy diff
rather than failing when not set (#1856) - Added warning to mis-cased standard HTTP verbs (#1862)
- Relaxed type constraints for
pageSize
property of the@paginated
trait (#1866) - Improved message for invalid
.errors
entries (#1867) - Added
docId
property toaws.api#service
trait (#1863, #1872, #1881, #1882) - Improved validation for http binding protocols (#1873)
- Expanded valid targets of
@httpPayload
(#1876)
- Updated documentation around
timestamp
and added more specificity to the definition (#1858)
- Removed unrecognized models from sources (#1851, #1860)
- Updated the content type of list & map shapes with the
@httpPayload
trait to document content type (#1840) - Fixed IDL serializer which would write emtpy
apply
statements to mixed in members ofenums
(#1865) - Fixed indentation when formatting text blocks (#1875)
- Added resource files to source jars (#1877, #1880)
- Fixed a potential resource leak by using a try with resources (#1878)
- Migrated to using Gradle 8.2.1 to build Smithy. This should have no impactful downstream effects (#1849)
- Moved repository into
smithy-lang
organization and updated resources accordingly (#1852, #1854)
- Added a default template for the
smithy init
command, making specifying templates optional (#1843) - Updated the model loader to skip unrecognized non-Smithy JSON files (#1846)
- Fixed basic HTTP authentication when resolving dependencies in the Smithy CLI (#1838)
- Fixed a bug when deduping
ChangedNullability
events (#1839)
- Replaced implementation docs with the awesome-smithy repository (#1845)
- Removed support for fractional seconds from the
http-date
timestamp format (#1847) - Rephrased optional fractional precision and no UTC offset support for the
date-time
timestamp format (#1835)
- Extended event ids for
AddedOperationError
,RemovedOperationError
,AddedEntityBinding
andRemovedEntityBinding
diff events (#1797, #1803) - Added enum values to ids for
ChangedEnumTrait
diff events (#1807) - Added
init
command to Smithy CLI (#1802, #1825, #1832) - Added
smithy-syntax
package andsmithy format
command to Smithy CLI (#1830)
- Fixed duplicated events for
ChangedNullability
alongside theAddedInputTrait / RemovedInputTrait
(#1806) - Updated request compression trait protocol tests with regard to HTTP bindings and respective specification (#1831)
- Added
smithy-dafny
to code generators table (#1813) - Updated stale docs around
MissingPaginatedTrait
(#1814) - Fixed grammar rendering (#1815)
- Updated recommendation for HTTP status code (#1818)
- Fixed selector example (#1824)
- Added note about how constraint traits affect backward compatibility (#1826)
- Added guide on disabling authentication (#1791)
- Refactor parsing and validation of
list
andmap
shapes. This improved validation output when unexpected members were present in these shapes (#1782) - Updated smithy-build to output projection failures only after all plugins finish running (failed or otherwise) (#1762)
- Added new pluggable validation-event decorator capability. This allows for customizing of validation events through a service provider interface (#1774)
- Added new diff-evaluator to emit events for when the
@required
trait is added to existing structures without a default (##1781) - Improved validation output for
@default
collisions (#1780) - Updated
@httpQuery
trait validation to prevent query-literal and query-param conflicts (#1786) - Updated default pagination flags to improve missing-pagination validation (#1764)
- Updated
SdkServiceIdValidator
to emitDANGER
events instead ofERROR
events (#1772) - Updated
ChangedEnumTrait
evaluator to include specific ids, in order to differentiate specific events (#1787) - Added protocol tests to validate http-label escaping in the
restXml
protocol (#1759) - Added support for
@externalDocs
trait when converting operations in the OpenAPI converter (#1767) - Updated a handful of specifications in the smithy-grammar to improve parsability (#1788, #1790, #1792, #1793, #1800)
- Fixed
migrate
CLI command to properly upgrade 1/1.0 models to 2/2.0 (#1579, #1769) - Fixed application of enum-mixins on empty enums (#1794)
- Fixed handling of dangling doc-comments in structures (#1776)
- Fixed several smithy-grammar typos and consistency issues (#1783)
- Added a warning about the limitations of request-validation in API-Gateway (#1765)
- Updated CLI installation guide for Windows to be more idiomatic (#1757)
- Updated protocol documentation pages to indicate support for the
@requestCompression
trait (#1763)
- Added
@requestCompression
trait which indicates whether an operation supports compressed requests (#1748) - Improved IDL parser and added basic error recovery (#1733)
- Added restJson1 protocol test for a list of structures missing a required key (#1735)
- Added ability to order the output of the IDL serializer (#1727)
- Updated conversion from string shape with
@enum
trait to enum shape to convertinternal
tag to@internal
trait (#1739)
- Added documentation for changeStringEnumsToEnumShapes transformation (#1740)
- Updated smithy-diff and smithy-build to use pretty validation output and color theming options (#1712)
- Added --mode flag to smithy diff command with support for
aribtrary
,project
, andgit
modes (#1724, #1721, #1718) - Added --flatten flag to AST command which flattens and removes mixins from the model (#1723)
- Expose functions to make ruleEvaluator more flexible to support coverage checking (#1681)
- Updated mixins to allow multiple mixins to override the same member if they all target the same shape (#1715)
- Fixed an issue where source file names impacted the ordering of metadata (#1716)
- Fixed error messages for invalid operation input/output bindings (#1728)
- Fixed bugs in smithy-rules-engine boolEquals and stringEquals which could cause unexpected results when visitors are invoked (#1681)
- Remove unnecessary member from
aws.iam#actionName
(#1726)
- Added guide on how to install the Smithy CLI (#1697)
- Added examples of how smithy validators can be used to prevent common bugs and enforce common style (#1702)
- Added clarification on meaning and use of
@httpApiKeyAuth
scheme
property (#1714) - Reduced IDL ambiguity by replacing *SP with [SP] (#1711)
- Added EnumTrait validation protocol test (#1679)
- Added process based plugins to Smithy build (#1672)
- Added GenerateOperationDirective to generate operation shapes separate from resources and services (#1676)
- Added :root and :in selectors (#1690)
- Added --show-traits to select command (#1692)
- Added includePreludeShapes in model plugin (#1693)
- Added aws.iam#actionName trait to override using the API operation name (#1679)
- Improved resource property validation and error messages (#1694)
- Improved CLI outputs for validation commands (#1695)
- Optimized identity and neighbor selectors (#1691)
- Refactored CLI to remove --severity from some commands (#1700)
- Removed unused positional [] from diff command (#1703)
- Ensured that the ValidationEvent listener gets all events when batch inclusions are used (#1698)
- Fixed cp-R for linux, xcopy for windows in smithy-cli installers (#1686)
- Fixed allowUnknownTraits for projection with import (#1685)
- Fixed reversed parameters in diff message for RemovedOperationError (#1689)
- Fixed hierarchical event ids lost when specifying a custom linter validator id or severity level (#1705)
- Improved handling additionalSchema targeting an invalid shape (#1708)
- Reduced IDL ambiguity by replacing *WS with [WS] (#1699)
- Added compatibility note to evolving models (#1669)
- Fixed mixins usage examples in style guide (#1670)
- Fixed type in primitive root-level example (#1687)
- Removed recommendation to implement presence tracking when handling default values (#1682)
- Removed OperationBody indefinite repetition in IDL (#1707)
- Added a suite of compliance tests for selectors (#1643)
- Fixed an issue with generating CloudFormation Resource Schemas when using the
@nestedProperties
trait (#1641) - Fixed an issue where
enum
shapes could not be used asresource
identifiers (#1644) - Fixed an issue when comparing event ids for deprecated shapes (#1640)
- Fixed an issue where "core" validation events were not suppressible (#1646)
- Fixed an issue with
NodeMapper
's handling of lists of generic types (#1635) - Fixed various typos of the word "ignore", including for the
NodeMapper.WhenMissing
enum (#1652) - Fixed an issue where
enum
members were flagged by theMissingSensitiveTrait
validator (#1661) - Updated the validation messages for
uniqueItems
malformed request tests (#1639) - Updated the validation messages for
enum
malformed request tests to not return internal values (#1658) - Fixed various issues with protocol tests (#1642, #1648, #1645)
- Add client-only protocol tests for fractional second parsing (#1627)
- Add protocol test for omitting empty http-query lists (#1629)
- Add support for JSON Schema draft2020-12 (#1617)
- Add hierarchical eventIds (#1527, #1631)
- Preserve tag order in generated OpenAPI specification (#1604)
- Add shapes generation order in CodegenDirector (#1615)
- Remove reflected input values from validation protocol tests (#1622)
- Fail ExamplesTraitValidator when both output and error are defined (#1599)
- Fix mixin cycles being incorrectly detected (#1628)
- Fix warnings in AST Loader for Resource and Operation Shapes with mixins (#1626)
- Fix referenced components removed in openapi schema (#1595)
- Fix OR condition in scoped attribute selector (#1618)
- Fix passthroughBehavior casing on x-amzn-apigateway-integration (#1619)
- Clarify rules for escaping shapes bound to URIs (#1630)
- Document Tree Sitter implementation (#1621)
- Clarify handling of date-time offsets (#1597)
- Add Smithy code generation guide (#1586, #1592)
- Implement Comparable interface for TagObject and ExternalDocumentation (#1589)
- Relax rule engine validation to support test auth schemes (#1590)
- Ensure that AuthSchemes added to Endpoint builder retain parameter ordering (#1591)
- Add intEnum coverage on map of string list (#1596)
- Add source location to synthetic Enum trait (#1580)
- Minor fix to restJson1 docs (#1587)
- Update protocol tests with datetime offset coverage (#1502)
- Add protocol tests to cover @range for short, long and integer shapes (#1515)
- Add exclude/include tranforms using selectors (#1534)
- Add a parseArn test case for resources with
:
and/
(#1537) - Move CDS warmup to the CLI directly (#1553)
- Allow error rename and disallow error rename for all AWS protocols (#1554)
- Add details to ModifiedTrait event id (#1560)
- Fix deterministic order of properties (#1555)
- Fix datetime offset restXml payload (#1559)
- Fix
RestJsonQueryStringEscaping
protocol test (#1562) - Fix
RestJsonAllQueryStringTypes
protocol test (#1564) - Fix Upgrade1to2Command for Set shape (#1569)
- Fix parameters to builder (#1571)
- Fix typo for NOTE under breaking change rules (#1552)
- Add tests for ACCEPT * (#1365)
- Test content-type modeled inputs without body (#1399)
- Improve member not targeting a property error message to better hint at fix (#1501)
- Add typechecking to EndpointRuleset build (#1507)
- Add warnings for private access on traits (#1508)
- Tweak class caching in node (de)serializers. (#1518, #1530)
- Add Maven dependency resolution to the CLI (#1526)
- Add details to TraitBreakingChange EventId (#1538)
- Fix dedicated io transform leaving unused shapes (#1419)
- Fix return type of substring method (#1504)
- Fix quoted text grammar and parsing (#1535)
- Fix backwards compatibility rules for the paginated trait (#1549)
- Make it clearer that assembly-name stripping is not a MUST in
restJson1
(#1493) - Clarify service-level pagination configuration (#1514)
- Document it is generally breaking to add/remove input trait (#1519)
- Fix grammar for MapMembers (#1520)
- Clarify that metadata has no namespace (#1521)
- Update trailing line break, list member grammar (#1533)
- Fix MapMembers grammar and update test (#1536)
- Fixed updating mixins when replacing shapes in transforms (1509)
- Moved useIntegerType to jsonschema (1495)
- Added intEnum protocol tests (1492)
- Added timestampFormat protocol tests on target shapes (1440)
- Added MissingSensitiveTraitValidator (1364)
- Fixed applying protocol tests to correct operations (1477)
- Fixed cfn-mutability for inherited identifiers (1465)
- Fixed Resource shape properties Type entry (1415)
- Updated links to point to smithy.io (1497)
- Fixed docs and fail on additional doc warnings (1496)
- Fixed AbstractCodeWriter documentation (1490)
- Add missing regions and fix typo in partitions.json (#1487)
- Added support for hierarchical event IDs in validation events, allowing for more granular suppression (#1466)
- Removed the pattern from the
@suppress
trait's entry list, allowing them to match all validator IDs (#1455) - Added the ability to lint based on word boundaries for the
ReservedWords
validator (#1461) - Added a
toNode
method to thePartition
class insmithy-rules-engine
(#1449) - Added a warning when
smithy-diff
detects changes to traits that do not have definitions loaded (#1468) - Improved validation for members that target nullable shapes (#1454, 1460)
- Added a hook to the
CodegenDirector
to allow for customization before shape generation (#1469) - Updated model assembling to always attempt model interop transforms (#1435)
- Fixed a bug where transforms would not remove enum members (#1442, #1447)
- Fixed a bug where documentation comments were dropped if they occurred after a member using the default value syntactic sugar (1459)
- Fixed an issue where resource identifier collisions would cause a model to fail loading (#1453, #1474)
- Added
@private
to the local traits for the AWSHttpConfiguration
shape (#1445) - Fixed an issue with behavior defined in an
awsQuery
protocol test (#1444) - Fixed several protocol tests in the
awsJson1_1
protocol test suite (#1392) - Fixed an incorrect application of the
@httpMalformedRequestTests
trait (#1467)
- Clarified streaming trait values and semantics (#1458)
- Updated the identifier ABNF and parser (#1464)
- Add support for missing authorizer members (#1426)
- Add intEnum DirectedCodegen (#1434)
- Add Smithy Rules Engine (unstable) (#1356)
- Revert "Enforce private on traits (#1406)" (#1428)
- Remove aws query compatible protocol test (#1424)
- Warn when box trait found on union member (#1420)
- Warn when default used with union member target (#1418)
- Simplify ShapeId caching (#1411)
- Update smithy-diff for strings with the enum trait to enum shapes (#1409)
- Add support for 1.0 downgrades and serialization (#1403 and #1410)
- Add AwsQueryCompatible trait (#1314)
- Only emit deprecation of enum trait in 2.0 models (#1421)
- Enforce private on traits (#1406)
- Fix apply statement parsing and ABNF (#1414)
- Add test for synthetic box traits on mixins (#1404)
- Add some clarifications to revised default value design doc (#1413)
- Revise default value design doc to match recent updates (#1412)
- Fix typo in migration guide (#1405)
Made many improvements for Smithy 1.0 and 2.0 interoperability. (1394)
- Default traits can now coexist with required trais. This indicates that a member should be serialized, but it is a protocol-specific decision if and how this is enforced. This was a pattern that occurred in Smithy 1.0 models when a member was required and targeted a shape with a zero value.
- Default traits can be added to root-level shapes. Any structure member that targets a shape marked with the default trait must repeat the default on the member. This removes the action at a distance problem observed in Smithy IDL 1.0 where a root level shape implicitly introduced a default zero value, and to know if that's the case for any member, you had to look through from the member to the target shape. This change allows us to know if a root level shape was boxed in IDL 1.0 too (root shapes with no default or a default set to anything other than the zero value was boxed).
- Added the
@addedDefault
trait which is used to indicate that a@default
trait was added to a member after it was initially released. This can be used by tooling to make an appropriate determination if generating a non-nullable type for the member is a backward compatible change. For example, if a generator only uses default zero values to generate non-nullable types, then the removal of the required trait and addition of a default trait would be a breaking change for them, so they can use addedDefault to ignore the default trait. - Add new NullableIndex modes for testing if a member is nullable based on the supported features of the generator. For example, some generators only make members non-optional when the member is set to the zero value of a type, so there is a NullableIndex check mode for that and other use cases.
- When loading IDL 2.0 models, we will now patch synthetic box traits onto shapes that would have been considered boxed in Smithy IDL 1.0. This improves further interop with tooling that has not yet adopted Smithy IDL 2 or that hasn't yet migrated to use the NullableIndex abstraction.
- When loading 1.0 models, rather than dropping the default trait from a member when the range trait of a shape is invalid for its zero value, we now instead emit only a warning for this specific case. This prevents changing the type and also doesn't lose the range constraint.
- The Primitive* shapes in the prelude are no longer deprecated, and they now have a
@default
trait on them set to the zero value of the type. This makes these traits function exactly as they did in Smithy 1.0 models. Any member that targets one of these primitive prelude shapes must now also repeat the zero value of the target shape. - Added an optional nullability report to smithy-build that shows the computed nullability semantics of each member in a model. This can be used to better understand nullability semantics.
- Added method to NumberNode to detect if it is set to zero. (#1385)
- In ChangeShapeType transform, ignored types changes to same type. (#1397)
- Updated smithy-diff to not emit events when diffing a 1.0 model against the 2.0 serialized version of the model. This means that changes to the box trait are ignored unless the change impacts the nullability of the shape. Special handling was added to detect breaking changes with the default trait too (you can't change a default value of a root-level shape for example, you cannot change a default value of a shape to or from the zero value of a type as this might break code generators, etc). (1394)
- smithy-diff is no longer reporting expected
set
shape tolist
shape transitions. Sets are deprecated and models are encouraged to migrate from sets to lists with the@uniqueItems
trait. (1383)
- Fix operationOutputSuffix in example code snippet (#1393)
- Fix ABNF grammar of inlined structure (1377)
- Made string enum to enum shape transform opt-in in CodegenDirector. (#1370)
- Updated
@httpResponseCode
to not be applicable to@input
structures. (#1359) - Made some improvements in smithy-build. (#1366)
- Filtered out synthetic traits from build info. (#1374)
- Fixed a log message when unable to convert string enum to enum shape. (#1372)
- Updated Smithy IDL ABNF Docs. (#1357)
- Added new methods to help deserializing object nodes (#1350)
- Added several (unstable) traits for endpoint resolution in the new
smithy-rules-engine
package (#1248)
- Fixed an issue where validation events were emitted twice (#1362)
- Fixed a bug that was causing errors loading 1.0 models with
@enum
traits (#1358) - Fixed
PostUnionWithJsonName
andMalformedAcceptWithGenericString
protocol test. (#1361, #1360) - Added missing readonly traits on HTTP GET tests (#1354)
- Added version 2.0 of the Smithy IDL. (#1317, #1312, #1318)
- Added mixins for all shape types. (#889, #1025, #1139, #1323)
- Added resource properties to version 2.0 of Smithy IDL. (#1213)
- Added target elision for mixins/resources. (#1231)
- Added inline operation IO shapes. (#963, #962, #1007)
- Added validation for multiple IDL versions. (#917)
- Added IDL 1.0 to 2.0 model migration tool. (#1175)
- Added enum shapes. (#1088, #1114, #1133, #1313)
- Added
@clientOptional
trait. (#1052, #1264) - Multiple traits can now be applied in a single
apply
statement. (#885) - Commas are now optional in the IDL. (#772, #776, #1166)
- Added
@default
trait. (#1019, #1286, #1021, #1048, #920) - Sets can no longer be used in 2.0 models. Use a list with the
@uniqueItems
trait instead. Sets can still be used in 1.0 models, though a warning will be emitted. TheSetShape
in smithy-model is a subclass ofListShape
, so new code generators can simply treat anySetShape
like aListShape
. (#1292) - Migrated traits packages to use Smithy IDL definitions instead of JSON AST. (#1207)
- Added
@cfnDefaultValue
trait (#1285)
- Made streaming blobs required/default. (#1209)
- Fixed TextIndex to handle synthetic traits. (#1206)
- Removed duplicate aws.protocols model file. (#1310)
- Removed empty trait block serialization. (#1240)
- Fixed trait source locations. (#1146, #1157)
- Added documentation for IDL 2.0 and changed location of 1.0 docs. (#1302, #1057)
- Added IDL 1.0 to 2.0 migration guide. (#1065, #1074)
- Updated the doc highlighter for IDL 2.0. (#1251)
- Added documentation to IAM trait enums. (#1322)
- Disallowed
@sensitive
trait on members. It must be applied the shape targeted by members. (#1226) - Deprecated
set
in favor of@uniqueItems
.@uniqueItems
can no longer targetfloat
,double
anddocument
. (#1278)
- Added
breakingChanges
property to@trait
to specify more complex backward compatibility rules. (#1193) - Added automatic casing detection to CamelCaseValidator. (#1217)
- Added
--quiet
flag to all CLI commands. (#1257) - Added CodeWriter support to pull named parameters from CodeSections. (#1256)
- Added stack trace comment support to code writer. (#1198)
- Added an automatic topological sorting of shape in DirectedCodegen. (#1214)
- Updated CodegenDirector to generate shapes before generating service. (#1289)
- Updated CodegenDirector to automatically use
SymbolProvider.cache
. (#1233) - Made SmithyIntegrations available from CodegenContext. (#1237)
- Added helper to convert
Symbol
toSymbolReference
. (#1220) - Updated NodeDiff to sort results to make them easier to understand. (#1238)
- Implemented
Comparable
inSourceLocation
. (#1192) - Added missing validation to ensure that unions have at least one member. (#1229)
- Added validation to forbid impossibly recursive shapes. (#1200, #1212, #1253, #1269)
- Added validation to warn when HTTP 204/205 responses have bodies. (#1254, #1276)
- Added validation to forbid sparse maps with httpPrefixHeaders. (#1268)
- Added ability to serialize the prelude. (#1275)
- Added protocol tests for httpResponseCode. (#1241)
- Enabled the PostUnionWithJsonName protocol test. (#1239)
- Fixed the MalformedAcceptWithGenericString compliance test. (#1243)
- Added definition for value equality for
@uniqueItems
. (#1278) - Added documentation for Smithy Server Generator for TypeScript. (#1119)
- Added link to Smithy Diff from Evolving Models guide. (#1208)
- Fixed constraint traits doc regarding non-structure members. (#1205)
- Fixed typo in
uniqueItems
warning. (#1201) - Clarified
@deprecated
javadocs insmithy-codegen-core
. (#1197) - Clarified Selectors documentation. (#1196)
- Clarified meaning of Language in implementations. (#1191)
- Clarified that constraint traits cascade for all members. (#1205)
- Removed jsonName note from awsJson protocols. (#1279)
- Added
DirectedCodegen
to make codegen simpler. (#1167, #1180) - Add ability to register interceptors with delegator. (#1165)
- Optimized deprecated trait validation. (#1162)
- Used ConcurrentSkipListMap in Model for knowledge instead of synchornized IdentityMap. (#1161)
- Added http and eventStreamHttp properties to AWS protocols. (#1172)
- Disallowed
requiresLength
trait in output. (#1155, #1152) - Added validation that
code
inhttp
trait is between 100 and 999. (#1156) - Added validation that
uri
inhttp
trait uses ASCII characters. (#1154) - Allowed
jsonName
trait on union members. (#1153) - Improved Dockerfile support. (#1140)
- Added support for conditions and loops to AbstractCodeWriter. (#1144)
- Added a warning for missing
^
or$
anchors in@pattern
trait. (#1141) - Added a validator to catch usage of non-inclusive words. (#931)
- Added new classes for code writing and delegation, which deprecates the
software.amazon.smithy.codegen.core.writer
package. (#1131) - Added a warning for using
@sensitive
trait on members, which will be removed in IDL 2.0. (#1132)
- Documented the supported OpenAPI version. (#1151)
- Added links to Scala generator and plugin. (#1145)
- Downgraded set type violations from ERROR to WARNING to give consumers more time to convert these sets to lists. These will be upgraded to ERROR again in a future release. (#1125)
- Fixed backwards compatibility of CodeWriter and created a new basic implementation of
AbstractCodeWriter
namedSimpleCodeWriter
. (#1123) - Fixed a bug in
AbstractCodeWriter
where indenting the next line would not be preserved after popping a state. (#1129) - Fixed a bug in
AbstractCodeWriter
where text could sometimes be lost due to lazy StringBuilder construction. (#1128) - Fixed a null pointer exception in
ModelAssembler
after callingreset()
. (#1124)
- Removed examples showing
@sensitive
on structure members, which is deprecated in IDL 2.0. (#1127)
-
Sets can now only contain byte, short, integer, long, bigInteger, bigDecimal, and string shapes. Sets with other types of values are either difficult to implement in various programming languages (for example, sets of floats in Rust), or highly problematic for client/server use cases. Clients that are out of sync with a service model could receive structures or unions from a service, not recognize new members and drop them, causing the hash codes of members of the set to collide, and this would result in the client discarding set entries. For example, a service might return a set of 3 structures, but when clients deserialize them, they drop unknown members, and the set contains fewer than 3 entries.
Existing models that already use a set of other types will need to migrate to use a list rather than a set, and they will need to implement any necessary uniqueness checks server-side as needed. (#1106)
NOTE: This restriction was downgraded to a WARNING in 1.18.1
-
Removed unused
UseShapeWriterObserver
and related features. (#1117)
- Added interfaces for Codegen integrations, interceptors, and contexts. (#1109, #1118)
- Added support for typed sections, prependers and appenders, and more explicit newline control to
CodeWriter
. (#1110) - Added built-in
Symbol
andCall
formatters, a typed context, and debug info toCodeWriter
. (#1095, #1104) - Added a
DependencyTracker
forSymbol
s. (#1107) - Rewrote
CodeFormatter
to be easier to understand and evolve. (#1104) - Exposed
CodegenWriter
'sDocumentationWriter
. (#1083) - Improved error messages from
SmithyBuilder
. (#1100) - Reduced copies made in
smithy-codegen-core
andsmithy-build
. (#1103) - Added non-optional method for
@httpMalformedRequestTest
uris. (#1108) - Added multi-code-unit characters to
@length
validation tests. (#1092) - Added malformed request tests for
set
types. (#1094) - Clarified a message for
@httpPayload
binding errors. (#1113) - Deprecated
onSectionAppend
andonSectionPrepend
. (#1110)
- Fixed an incorrect warning when the
errors
property was set on aservice
. (#1120) - Fixed various issues in protocol tests. (#1084, #1040)
- Fixed a failing code path in
SmithyBuild
. (#1100)
- Added note about escaping
\
in@pattern
. (#1091) - Clarified error serialization behavior for
@restJson1
. (#1099) - Clarified defaulting behavior of
@httpResponseCode
. (#1111) - Clarified behavior of the
sources
plugin. (#977) - Clarified how
@length
interacts with UTF-8 encoding. (#1089) - Fixed an
@idRef
example. (#1087)
- Migrated to using Gradle 7.3.3 to build Smithy. This should have no impactful downstream effects. (#1085)
- Updated
@streaming
validation for protocols that support@httpPayload
. (#1076)
- Added ability to serialize the JMESPath AST. (#1059)
- Update
CodeWriter
to add getters and ability to copy settings. (#1067)
- Clarified
outputToken
. (#1056) - Removed repeated words. (#1063)
- Clarified server behavior for query parameter deserialization. (#1080)
- Updated traits to preserve the original
Node
value from the model. (#1047)
- Removed @internal from the @unitType trait. (#1054)
- Fixed JMESPath and-expression evaluation to correctly provide the result of the left expression when it is falsey. #1053
- Fixed quoted string headers restJson1 response protocol test. #1049
- Renamed
StutteredShapeName
validator toRepeatingShapeName
and added anexactMatch
configuration to let it more precisely prevent problematic models. (#1041) - Reduced the severity of
HttpBindingsMissing
events for services that do not use protocols that support the@http
trait. (#1044) - Added
unwrite()
toCodeWriter
. (#1038)
- Fixed the
RestJsonInputUnionWithUnitMember
protocol test. (#1042)
- Updated the documentation for pagination. (#1043)
- Make
smithy.api#Unit
easier to adopt by excluding direct relationships between it and operation inputs and outputs. (#1034)
- Fixed character escaping in a restJson1 protocol test. (#1035)
- Added
smithy.api#Unit
and@input
and@output
traits. (#980, #1005) - Removed support for collection values for
@httpPrefixHeaders
. (#1022) - Added a protocol test for handling path segments that contain regex expressions. (#1018)
- Removed
jsonName
from theawsJson
protocol tests and documentation. (#1026) - Reverted changes to timestamp list header serialization protocol tests. (#1023)
- Fixed links in the search results of Smithy's javadocs. (#1009)
- Fixed duplication of validation events for conflicting names. (#999)
- Added links to Kotlin and Swift generators. (#1020)
- Clarified matching of URIs where greedy labels have no matching segment. (#1013)
- Added minor optimizations. (#1028, #1027, #1004)
- Added Apple silicon target for smithy-cli. (#1012)
- Updated smithy-cli to use JDK 17. (#1003)
- Added protocol tests for quoted strings in headers. (#986)
- Fixed
filterSuppressions
transform's handling of members. (#989) - Fixed http-content-type protocol tests. (#993)
- Fixed documentation regarding
@length
and@auth
traits. (#988, #997) - Added documentation for
httpMalformedRequestTests
. (#973)
- Upgraded to use version
0.6.0
of the Smithy Gradle Plugin. (#996) - Reduced number of copies builders need to make when building up immutable objects. (#995)
- Ensured InputStreams in loader are closed. (#991)
- Updated the
@aws.protocols#httpChecksum
trait to use uppercase algorithm names. (#982)
- Fixed an issue where JSON Schema conversion wouldn't remove out-of-service references before deconflicting. (#978)
- Fixed IAM condition key inference not using the
@aws.iam#iamResource
trait. (#981)
- Added the
@aws.protocols#httpChecksum
trait to describe checksumming behavior for operations. (#972)
- Fixed a bug that used a JSON pointer instead of names when generating CloudFormation Resource Schema required properties. (#971)
- Clarified parsing of members marked with the
@httpQueryParams
trait. (#957)
- Fixed a bug that caused the
apply
transform to not run its projections. (#969)
- Added a
filterSuppressions
model transform. (#940) - Updated selector attributes to be stricter. (#946)
- Added support for generating the
required
property when generating CloudFormation Resource Schemas. (#937) - Added support for generating the
handlers
property when generating CloudFormation Resource Schemas. (#939) - Added the
@aws.iam#iamResource
trait to indicate properties of a Smithy resource in AWS IAM. (#948) - Added the
@aws.iam#supportedPrincipleTypes
trait to indicate which IAM principal types can use a service or operation. (#941) - Updated model serializers to allow for serializing the prelude. (#955)
- Updated JSON Schema conversion to maintain property order. (#932)
- Improved
@httpApiKeyAuth
description when converting to OpenAPI. (#934) - Updated the error message received when http request body content issues are encountered. (#959)
- Updated request tests for
restJson1
query strings. (#933, #958) - Added protocol tests for
restJson1
content types. (#924, #945)
- Fixed issues in model loading that required a service
version
property. (#936) - Fixed an issue that where CORS headers in OpenAPI conversions were not case-insensitive. (#950)
- Fixed various issues in protocol tests. (#930, #933, #935, #944, #949, #954)
- Clarified host-related settings in the
@httpRequestTests
trait documentation. (#951) - Clarified uri samples and descriptions. (#960)
- Fixed some issues in documentation. (#952)
- Added support for binding common errors to a
service
shape. (#919) - Loosened the requirement of setting a
version
property when defining aservice
. (#918) - Updated
smithy-build
to fail when a build plugin cannot be found. (#909) - Added a
changeTypes
build transform. (#912) - Added support for replacing simple shapes in
ModelTransformer
. (#900) - Added a
scheme
property to the@httpApiKeyAuth
trait. (#893) - Added support for specifying errors in the
@examples
trait. (#888) - Added multi-character newline support in
CodeWriter
. (#892) - Updated semantic validation of modeled
OPTIONS
operations. (#890) - Added several malformed request protocol tests. (#879, #882, #881, #898, #901, #905, #908)
- Added protocol tests for path prefixes. (#899)
- Fixed how
NodeMapper
handles generic params. (#912) - Fixed how the CLI logs messages and interacts with logging levels. (#910)
- Updated guidance on ordering of
set
shapes. (#875) - Clarify that event streams contain modeled errors. (#891)
- Added an index that lists all traits. (#876)
- Fixed various documentation issues. (#884, #911, #927)
- Updated CORS header configuration when converting to OpenAPI while using
sigv4
orrestJson1
. (#868) - Added the (unstable)
httpMalformedRequestTests
trait to validate service behavior around malformed requests. (#871) - Added
smithy-diff
error when an enum entry is inserted. (#873) - Added a
restXml
protocol test. (#866) - Added a
httpChecksumRequired
protocol test. (#869)
- Updated
NodeMapper
to properly handlesourceLocation
for traits. (#865) - Removed warning when an operation using the HTTP
PATCH
method is marked with the@idempotent
trait. (#867) - Fixed several issues where a
sourceLocation
wasn't propagated for traits. (#864)
- Loosened the requirement of setting an
error
property when configuringaws.api#clientEndpointDiscovery
trait. (#850) - Added a
restJson1
protocol test. (#845) - Added a warning when using the OpenAPI conversion
jsonAdd
setting to alter schemas. (#851) - Added the
httpChecksum
trait. (#843)
- Revert "Tightened substitution pattern for Fn::Sub to match CloudFormation." (#858)
- Fixed an issue where
cors
traitadditionalExposedHeaders
were not added to gateway responses. (#852) - Fixed various issues in protocol tests. (#849, #855, #857)
- Clarified behavior for the
aws.api#service
trait'ssdkId
member. (#848) - Fixed various typos. (#853, #859)
- Fixed a number of protocol tests related to non-numeric floats. (#844)
- Tightened substitution pattern for Fn::Sub to match CloudFormation. (#842)
- Added a common validation model for use in server SDKs. (#813)
- Added support for cross platform builds of the CLI. (#832)
- Validate the contents of protocol test bodies for known media types. (#822, #835)
- Updated support for non-numeric floating-point values in several places. (#828)
- Added several
restJson
protocol tests. (#684) - Added several
restXml
protocol tests. (#804) - Added and updated several
awsQuery
andec2Query
protocol tests. (#815, #833) - Added several
document
type protocol tests. (#810)
- Fixed a
NullPointerException
when loading a config and no parent path is present. (#814)
- Added
s3UnwrappedXmlOutput
trait, which defines when an S3 operation does not use the protocol standard XML wrapper. (#839)
- Added an overview of known Smithy implementations and projects. (#830, #831)
- Improved the documentation for the
restXml
. (#827) - Improved the documentation for the
awsQuery
. (#827) - Improved the documentation for the
ec2Query
protocol. (#823, #827, #836) - Added more context for documentation types. (#818)
- Fixed several minor documentation issues. (#816, #818, #837, #840)
- Added
awsQueryError
trait, which defines the value in theCode
distinguishing field. (#807) - Added methods to get shapes by type and trait. (#806)
- Improved performance. (#805)
- Improved percent-encoding tests and doumentation. (#803)
- Added
double
format to epoch-seconds timestamps when converting to OpenAPI. (#802) - Improved CLI output. (#800, #801)
- Fixed awsQuery protocol test to show distinction from ignored
@xmlNamespace
trait. (#799)
- Fixed a bug where unions would cause CloudFormation schema conversion to fail. (#794)
- Fixed an incorrect restXml protocol test. (#795)
- Added the
recommended
structure member trait, which indicates that a structure member SHOULD be set. (#745) - Added support for service renames when using the
flattenNamespaces
transformer. (#760) - Set
additionalProperties
tofalse
for CloudFormation objects. (#764) - Improved model validation debugging by stopping validation when an
ERROR
occurs while loading models. (#775) - Added validation warning when a
hostPrefix
contains a label that does not end in a period. (#779) - Added and updated several
@restXml
protocol test. (#744, #755, #757, #777, #766, #789) - Added and updated several
@restJson1
protocol test. (#747, #755, #765, #790)
- Fixed number parsing in the IDL, using BigDecimal or BigInteger where needed. (#766)
- Fixed Gradle 7 builds. (#758)
- Added
Document
type to list of inherently boxed shapes. (#749) - Reordered
TraitService
SPI entries for readability. (#742)
- Added missing
name
properties toaws.iam#ConditionKeyType
enum. (#759)
- Fixed
selector_expression
andcomment
in ABNF for Smithy IDL. (#771, #771) - Documented conflict resolution of HTTP query params. (#783)
- Documented precedence of constraint traits. (#784)
- Upgraded to use version
0.5.3
of the Smithy Gradle Plugin. (#791)
- Added the
rename
property to theservice
shape to disambiguate shape name conflicts in the service closure. (#734) - Added the
httpQueryParams
trait that binds a map of key-value pairs to query string parameters. (#735) - Improved the usability of code for building and running Selectors. (#726)
- Added several protocol tests for behavior around
null
serialization. (#728)
- Added missing documentation for some trait models. (#737)
- Fixed
awsQuery
andec2Query
list serialization examples. (#732)
- Added the
renameShapes
build transform to rename shapes within a model. (#721)
- Fixed several issues in protocol tests around
@endpoint
. (#720)
- Added support for checking backwards compatibility for diffs of trait contents. (#716)
- Added support for adding CORS configurations to API Gateway HTTP APIs. (#670)
- Relaxed constraints on the
@httpPayload
trait, allowing it to targetlist
,set
, andmap
shapes. (#679) - Added validation to ensure a
payloadFormatVersion
is set when generating an API Gateway HTTP API. (#688) - Added
vendorParamsShape
to protocol test cases to support validating a test case'svendorParams
values are configured properly. (#702) - Added the ability to validate resolved hosts to protocol tests. (#707)
- Added backwards compatibility checking to
smithy-diff
for the@paginated
trait. (#716) - Added
tags
andappliesTo
to protocol test definitions for better categorization and grouping. (#696) - Added several protocol tests for the
endpoint
andhostLabel
traits. (#708) - Added several
@restXml
protocol tests. (#689, #690, #678, #694)
- Fixed an issue that produced duplicate entries in the
security
list of a converted OpenAPI document. (#687) - Fixed an issue where
alphanumericOnlyRefs
was not fully satisfied when generating synthesized shapes. (#695) - Fixed several issues in IDL parsing where duplicate bindings were allowed incorrectly. (#714)
- Fixed several issues in protocol tests around serialization of empty contents. (#692)
- Fixed an issue where parameters in a diff error message were swapped. (#713)
- Fixed an issue in a
restXml
protocol test. (#715)
- Added a configuration definition for use validating
vendorParams
in AWS protocol tests. (#705) - Added tests and documentation for some required Amazon S3 customizations. (#709)
- Added tests and documentation for required Amazon Glacier customizations. (#704)
- Added a test and documentation for the required Amazon API Gateway customization. (#706)
- Added a test and documentation for the required Amazon Machine Learning customization. (#707)
- Improved the documentation for the
awsJson1_0
andawsJson1_1
protocols. (#698) - Improved the documentation for the
awsQuery
andec2Query
protocols. (#700) - Clarified that Smithy requires support for fractional seconds for the
http-date
value of@timestampFormat
. (#672) - Added missing shape documentation for some waiters related shapes. (#711)
- Fixed several minor documentation issues. (#681, #693, #697, #701, #708, #717)
- Migrated to using Gradle 6 to build Smithy. This should have no impactful downstream effects. (#194)
- Migrated to using
main
frommaster
for the default branch. This should have no impactful downstream effects. (#685)
- Fixed several issues related to building and running on Windows. (#671)
- Fixed an issue loading the
jsonAdd
map from configuration for thecloudformation
plugin. (#673) - Fixed an issue where API Gateway REST APIs would have greedy label parameter names rendered into OpenAPI with
a
+
suffix. (#674)
- Added the
endpointPrefix
property to the@aws.api#service
trait. (#663) - Added support for
tags
anddeprecated
members to@waitable
definitions. (#652) - Added validation for
@httpHeader
trait values. (#650) - Add
required
property forrequestBody
when converting to OpenAPI. (#655) - Added more helper methods to
OperationIndex
. (#657)
- Ensure that names in the
@waitable
trait are unique in the closure of the service. (#645) - Fixed a regression with
@aws.apigateway#authorizors
behavior when setting thecustomAuthType
property without having set itstype
property. (#613) - Fixed an issue where modeled headers were not populated in to
Access-Control-Expose-Headers
in CORS responses. (#659) - Added missing
deprecated
member to@enum
definitions in the prelude model. (#651) - Fixed an issue with the conversion of greedy label parameter names in to OpenAPI. (#641)
- Fixed an issue in
CodeWriter.popState
where it would not honor custom expression start characters. (#648) - Fixed a potential
NullPointerException
when validating the@examples
trait. (#642) - Fixed issues with some
@awsQuery
and@ec2Query
protocol test responses. (#653) - Fixed an issue where the
removeTraitDefinitions
build transform was not registered with the SPI. (#660) - Fixed an issue where using an environment variable in
smithy-build.json
would consume an extra preceding character when performing a replacement. (#662)
- Update
@waitable
documentation to specify using jitter and account for overflows. (#656) - Added examples and clarified documentation for several HTTP traits, most importantly
@httpLabel
and@httpQuery
. (#654) - Clarified various aspects of the
@xmlNamespace
trait documentation. (#643) - Clarified
@waitable
documentation. (#646, #664) - Clarified that the
@pattern
trait does not implicitly match an entire string. (#649) - Fixed various examples in the specification. (#639)
- Sort
TopDownIndex
contents to provide deterministic results. (#667) - Improved error messages when an unknown annotation trait is encountered. (#644)
- Added
smithy-diff
error when the@idempotencyTrait
token is removed from a shape. (#640)
- Added
smithy-jmespath
, a dependency-less, JMESPath parser with a rich AST that can be used in code generation, and performs static analysis of expressions. (#621) - Added
smithy-waiters
, containing the@waitable
trait. This provides information that clients can use to poll until a desired state is reached, or it is determined that state cannot be reached. (#623) - Added
smithy-aws-cloudformation-traits
, containing several (unstable) traits that indicate CloudFormation resources and the additional metadata about their properties. (#579) - Added
smithy-aws-cloudformation
, containing the (unstable) "cloudformation" build tool that, given a model decorated with traits fromaws.cloudformation
, will generate CloudFormation Resource Schemas. (#622)
- Added support for
patternProperties
when generating JSON Schema. (#611) - Added more utility methods to the
CodeWriter
. (#624) - Added validation for
@sensitive
trait when applied to members. (#609) - Added support for retrieving full paths to the
outputToken
anditems
pagination members. (#628) - Added a warning for
@enum
entries without names. (#610) - Added support for generating an
integer
OpenAPI type. (#632) - Improved
smithy-diff
evaluation of changing member targets. (#630) - Updated pagination tokens to support being
map
shapes. (#629)
- Fixed a bug where URIs would be declared conflicting if the differed through the
@endpoint
trait. (#626) - Fixed a bug that would allow the
@aws.auth#sigv4
trait'sname
property to be empty. (#635) - Updated protocol tests for
@sparse
trait. (#620, #631) - Fixed a bug with the interaction of
CodeWriter.writeInline
with sections. (#617)
- Fixed links for protocol test suites. (#615)
- Added example and test for composing with
CodeWriter
. (#619) - Clarified that
@enum
values cannot be empty. (#633) - Clarified binary data in protocol tests. (#634)
- Lowered severity of validation that a
pageSize
member is marked@required
. (#612)
- Added several
CodegenWriter
and related abstractions to simplify creating code generators. (#587) - Added the
@sparse
trait to the Prelude. (#599) - Added the
NullableIndex
to help check if a shape can be set to null. (#599) - Added support for API Gateway API key usage plans. (#603, #605)
- Added the
sortMembers
model transform to reorder the members of structures and unions. (#588) - Add
description
property to operations when converting to OpenAPI. (#589)
- Fixed an issue where the
flattenNamespaces
build transform was not registered with the SPI. (#593)
- Optimized the reverse
NeighborProvider
for memory usage. (#590) - Optimized model validation event aggregation for memory usage. (#595)
- Clarified that
map
keys,set
values, andunion
members cannot be null. (#596) - Clarified
enum
names and their usage. (#601) - Added an example dependency to OpenAPI conversion. (#594)
- Improve and clean up formatting. (#585, #597, #598)
- Updated
service
,resource
, andoperation
shapes to maintain the order of boundresource
andoperation
shapes. (#602) - Updated the
sources
build plugin to create an empty manifest if there are no source models. (#607) - Deprecated the
BoxIndex
. (#599) - Added
enum
names forhttpApiKeyLocation
in the Prelude. (#606)
- Added information to the
ModelDiff.Result
indicating how events have changed between the diff'd models. (#574) - Added a media type parser and validation for the
@mediaType
trait. (#582) - Added additional default CORS headers and configuration for OpenAPI conversions. (#583)
- Added the
flattenNamespaces
build transform to flatten the namespaces of shapes connected to a specified service in a model in to a target namespace. (#572) - Added
runCommand
functionality tosmithy-utils
. (#580) - Added a
TriConsumer
tosmithy-utils
. (#581) - Added support for the
@httpResponseCode
trait in theHttpBindingIndex
. (#571) - Added protocol tests for the
@httpResponseCode
trait. (#573)
- Fixed several issues that would cause Smithy to fail when running on Windows. (#575, #576, #577)
- Fixed a bug where a
union
shape marked as an@httpPayload
would throw an exception when trying to resolve its content-type. (#584) - Fixed a bug in OpenAPI conversions where tags were not passed through unless set in the
supportedTags
list, even when thetags
setting was enabled. (#570)
- Added the
removeTraitDefinitions
build transform to remove trait definitions from models but leave instances intact. (#558) - Added payload binding validation to HTTP
DELETE
operations. (#566) - Updated
SmithyDiff
to emit events when traits are changed. (#561)
- Fixed an issue where some
StringListTrait
instances could loseSourceLocation
information. (#564) - Fixed some issues in protocol tests. (#560, #563)
- Model components are now deduplicated based on location and value. (#565)
- Normalize URL import filenames for better deduplication and reporting. (#562)
- Added a reverse-topological knowledge index to aid in code generation for languages that require types to be defined before they are referenced. (#545, #53)
- Added the
@httpResponseCode
trait to indicate that a structure member represents an HTTP response status code. (#546) - Added (unstable) support for generating a "Trace File" to link code generated artifacts back to their modeled source. (#552)
- Added the
:topdown
selector that matches shapes hierarchically. (#539) - Added validation for the
cloudTrailEventSource
property of the@aws.api#service
trait. (#550) - Updated shape builders to properly update their member ShapeIds if the ShapeId of the builder changes. (#556)
- Added several more XML related protocol tests. (#547)
- Fixed a bug where the
PaginatedIndex
did not properly support resolving paths. (#554)
- Clarified the documentation for the
cloudTrailEventSource
property of the@aws.api#service
trait. (#550) - Clarified that the
@aws.api#arn
trait has no impact on OpenAPI conversions. (#555)
- Added a validation event when a syntactic shape ID is found that does not target an actual shape in the model. (#542)
- Fixed a bug where forward reference resolution would use the incorrect namespace when resolving operation and resource bindings. (#543)
- Deprecated the reflection-based creation pattern for
KnowledgeIndex
implementations. (#541)
- Allow conflicting shape definitions if the fully built shapes are equivalent. (#520)
- Added the
@internal
trait to the prelude. (#531) - Added the
excludeShapesByTrait
build transform that will remove any shapes marked with one or more of the specified traits. (#531) - Improved support for newlines and indentation in
CodeWriter
. (#529) - Added support for configuring the expression starting character in
CodeWriter
. (#529) - Added
payloadFormatVersion
property for API Gateway integrations. (#527) - Add
deprecated
property to operations when converting to OpenAPI. (#535) - Added several more protocol tests. (#528, #536)
- Fixed the selector for the
@httpQuery
trait. (#534) - Fixed the selector for the
@httpPrefixHeaders
trait. (#533) - Fixed some issues in protocol tests. (#526)
- Removed the
abbreviation
property from the@aws.api#service
trait. (#532) - Simplified prelude model loading. (#524)
- Further simplified overall model loading. (#525)
- Updated
Walker
to provide a stable sort for shapes. (#511) - Improved support for loading
ValidationEvent
s viaNodeMapper
. (#518, #516) - Added the ability to
disableFromNode
viaNodeMapper
. (#505)
- Stopped raising validation errors and running validation with
RenameShapes
transformer. (#512) - Simplified conflict handling for shapes. (#514)
- Simplified duplicate member detection and handling. (#513)
- Use the
@title
trait to improve generated documentation for JSON Schema unions that use"oneOf"
. (#485) - Added and updated several protocol tests for
restJson1
. (#490) - Added and updated several protocol tests for
awsJson1_1
. (#484, #493) - Added protocol tests for
awsJson1_0
. (#496)
- Fixed a bug where
passthroughBehavior
was misspelled aspassThroughBehavior
in APIGateway OpenAPI output for integrations and mock integrations. (#495) - Fixed a bug where only the last line in a multiline doc comment on a member would be successfully parsed. (#498)
- Fixed several issues in protocol tests. (#473, #476, #481, #491)
- Refactored the specification to better explain the semantic model and its representations. (#497, #482)
- Clarified guidance on using
@mediaType
. (#500) - Removed outdated namespace guidance. (#487)
- Fixed several minor issues. (#494)
- Disallowed problematic identifiers misusing
_
. (#499) - Moved validation of members with the
@httpLabel
trait being marked required to the selector. (#480)
- Update
structure
andunion
shapes so member order is maintained as part of the contract. (#465) - Add validation for
document
types in protocols. (#474) - Provide suggestions for invalid Shape ID targets if a close match is found. (#466)
- Added message templates and trait binding to the
EmitEachSelector
. (#467) - Added ability to add traits directly to the
ModelAssembler
. (#470) - Convert
awsJson1_1
protocol tests to Smithy IDL. (#472) - Update decimal values in protocol tests. (#471)
- Update quick start guide with more examples. (#462)
- Fixed issues allowing
document
types in@httpHeader
and@httpPrefixHeaders
traits. (#474)
- Fixed a bug in loading IDL files where resolving a forward reference that needed another forward reference would throw an exception. (#458)
- Fixed a bug where smithy-build imports were not resolved relative to their
smithy-build.json
. (#457) - Fixed a bug where the
PREFIX_HEADERS
HTTP binding location would not default its timestamp format toHTTP_DATE
. (#456)
- Ensure that when a property is removed from a JSON schema object, that a corresponding "required" entry is also removed. (#452)
- Added the (unstable)
@httpChecksumRequired
trait to indicate an operation requires a checksum in its HTTP request. (#433, #453)
- Fixed a bug in OpenApi conversion where removing authentication for an operation would result in the operation inheriting the global "security" configuration instead of having it set to none. (#451)
- Added examples of building models to various guides. (#449)
- Fixed various documentation issues. (#449)
- Prevent parsing overly deep Node values (#442)
- Fix an issue with the OpenAPI conversion where synthesized structure inputs reference required properties that were removed. (#443)
- Fix an issue that would squash exceptions thrown for invalid suppressions. (#440)
- The
smithy.api#httpPayload
trait can now target document shapes. (#431) - Updated the IDL grammar to include many previously enforced parsing rules. (#434)
- Added the
select
command to the CLI to print out shapes from a model that match a selector. (#430) - Added the
ast
command to the CLI to convert 0 or more Smithy models into a JSON AST. (#435) - Added a Dockerfile for building Smithy as a Docker image. (#427)
- The Smithy IDL parser has been rewritten and optimized. (#434)
- Generate a class data share to speed up the CLI. (#429)
- Fix several ambiguities and issues in the IDL grammar. (#434)
- JSON pretty printing of the AST now uses 4 spaces for indentation. (#435)
- Fix CLI
--help
output alignment. (#429)
Note: Changes marked with "[BC]" are breaking changes more accurately described in the specific section. A list of further intended breaking changes have a specific section near the end of this entry.
- The model format version has been updated to
1.0
and contains several updates: [BC] (#357, #381)- The JSON AST representation requires describing annotation traits as
{}
instead oftrue
. - Annotation traits in the IDL are now provided as
@foo
or@foo()
. Explicit@foo(true)
and@foo(null)
support was removed.
- The JSON AST representation requires describing annotation traits as
- Smithy models can now be serialized to the IDL. (#284)
- Added a Node-based object mapper to simplify the process of building and using Java components
from Smithy
Node
s. (#301) - Made error messages clearer when encountering duplicate shapes. (#324)
- Model loaders now warn on additional shape properties instead of fail. (#374)
- Added expect* methods to the base
Shape
. (#314) - Added
@SmithyUnstableApi
,@SmithyInternalApi
and@SmithyGenerated
Java annotations. (#297) NodeValidationVisitor
s are marked as internal and/or unstable. (#375)- The
$version
control statement can now be set to only a major version (e.g., "1") to indicate that an implementation must support a version >= 1 and < 2.$version
can now be set tomajor.minor
(e.g., "1.1") to indicate that an implementation must support a version >= 1.1 and < 2.
- Individual protocols are now defined as individual traits that are annotated with
the
protocolDefinition
trait. [BC] (#273, #280, #379, #390)- Previously listed AWS protocols now have trait implementations.
- Individual authentication schemes are now defined as individual traits that are annotated with
the
authDefinition
trait. [BC] (#273, #280)- Previously listed authentication schemes now have trait implementations.
- The
smithy.api#enum
trait is now a list of enum definitions instead of a map of string keys to enum definitions to improve clarity and encourage adding more properties to definitions. [BC] (#326) - The
aws.api#streaming
trait is now applied to shapes directly instead of members. [BC] (#340) - The
smithy.api#eventStream
trait has been removed. Event streams are now indicated by applying thesmithy.api#streaming
trait to unions. [BC] (#365) - The
smithy.api#requiresLength
trait has been split out of thesmithy.api#streaming
trait to improve clarity around event stream modeling. [BC] (#368) - The
smithy.api#externalDocumentation
trait is now a map instead of a single string to allow for multiple links per trait. [BC] (#363) - Added the
smithy.api#noReplace
trait to indicate a PUT lifecycle operation cannot replace the existing resource. (#351) - Added the
smithy.api#unstable
trait to indicate a shape MAY change. (#290) - Simplified
aws.api#unsignedPayload
to be an annotation. [BC] (#270) - Annotation traits are now lossless when loaded with additional properties, meaning they will contain those properties when serialized. (#385)
Selectors have received significant updates: (#388)
- Attribute selectors can now evaluate scoped comparisons using
@foo:
to define a scope and@{bar}
to define a context value. (#391) - And logic, via
&&
, has been added to allow multiple attribute comparisons. (#391) - Support for selecting nested trait properties with
|
, including list/object values and object keys, was added. - An opt-in
trait
relationship has been added. (#384) - The recursive neighbor selector,
~>
, has been added. (#386) - A not equal comparison,
!=
, was added. - An exists comparison,
?=
, was added. (#391) - Support for numbers in attribute selectors was added.
- Numeric comparisons (
>
,>=
,<
,<=
) were added. - The
(length)
function property was added. (#391) - Attribute selectors now support CSV values, allowing matching on one or more target values.
- The
:each
selector is now:is
for clarity. [BC] - The
:of
selector is now removed. Use reverse neighbors instead (e.g.,member :test(< structure)
). [BC] - The semantics of the
:not
selector have changed significantly.:not(list > member > string)
now means "do not match list shapes that target strings", whereas this previously meant, "do not match string shapes targeted by lists". [BC] - Shape IDs with members must now be quoted. [BC]
- Selector parsing and evaluating now tolerates unknown relationship types. (#377)
- Services must now contain a closure of shapes that have case-insensitively unique names. [BC] (#337)
suppressions
has been updated to now only suppress validation events that occur for an entire namespace or across the entire model. The@suppress
trait was added to suppress validation events for a specific shape. [BC] (#397).- The
UnreferencedShape
validator has moved tosmithy-model
and is now always run. [BC] (#319) EmitEachSelector
andEmitNoneSelector
were moved fromsmithy-linters
intosmithy-model
.
The conversion to JSON schema was significantly overhauled. [BC] (#274)
- Configuration for the build plugin was significantly overhauled. [BC] (#364)
- The strategy for shape inlining has been changed. [BC]
- The strategy for naming shapes and handling shape id conflicts has been changed. [BC]
- Output schema error detection was improved.
- The Java API surface has been reduced. [BC]
- Added the ability to select schemas from a document using a JSON pointer.
The conversion to OpenAPI was significantly overhauled. [BC] (#275)
- Configuration for the build plugin was significantly overhauled. [BC] (#364)
- Protocol conversion was updated to utilize the new traits. (#275, #392)
- Schemas are now generated for requests and responses instead of being inlined. [BC]
- Fixed several issues with CORS integrations.
The API Gateway specific OpenAPI mappers have been updated. [BC] (#367)
- The
ApiGatewayMapper
interface was added, allowing mappers to control which API Gateway API type(s) they support. - Fixed several issues with CORS integrations. (#370)
- Added support for JSON Patch-like OpenAPI schema changes based on JSON Pointers. (#293)
- Added support for event streams in OpenAPI conversion. (#334)
- Fixed an issue in JSON schema conversion where member traits were dropped in some scenarios. (#274)
- Fixed an issue where authorization headers were not properly added to CORS configurations. (#328)
- Fixed an issue where operation response headers were being applied to error responses in OpenAPI conversions. (#275)
- Fixed an issue where
apply
statements wouldn't resolve target shapes properly in some cases. (#287) - Fixed an issue with the selector for the
smithy.api#title
trait. (#387) - Fixed several issues with the
smithy.api#httpApiKeyAuth
trait and its related conversions. (#291) - Fixed a bug with timestamp validation in specific versions of Java. (#316)
- The
TraitTargetValidator
now performs as few checks on and selections of the entire model. (#389) - The dependency on
jackson-core
was replaced with a vendored version ofminimal-json
to reduce the chances of dependency conflicts. [BC] (#323) - Sped up model loading time by loading JSON models before IDL models to reduce forward reference lookups. (#287)
All changes listed in this heading and any sub-headings are breaking changes.
- The
BooleanTrait
abstract class insmithy-model
was renamedAnnotationTrait
. (#381) - The traits in the
aws.apigateway
namespace have moved fromsmithy-aws-traits
to thesmithy-aws-apigateway-traits
package for more granular use. (#322)- Tooling that referenced these traits has also been updated.
- The traits in the
aws.iam
namespace have moved fromsmithy-aws-traits
to thesmithy-aws-iam-traits
package for more granular use. (#322)- Tooling that referenced these traits has also been updated.
- The
aws.api#ec2QueryName
trait has moved toaws.protocols#ec2QueryName
. (#286) - The
aws.api#unsignedPayload
trait has moved toaws.auth#unsignedPayload
. (#286) - The
smithy-codegen-freemarker
package has been removed. (#382) - Traits can no longer be applied to public Smithy Prelude shapes. (#317)
- Smithy's
Pattern
class is renamed toSmithyPattern
to remove the conflict with Java's regexPattern
class. (#315) - Removed the
Triple
class fromsmithy-utils
. (#313) - Normalized class names for OpenAPI
SecurityScemeConverter
implementations. (#291) - Removed alias functionality from
software.amazon.smithy.build.SmithyBuildPlugin
andsoftware.amazon.smithy.build.ProjectionTransformer
. (#409) - Removed
software.amazon.smithy.model.shapes.Shape#visitor
andsoftware.amazon.smithy.model.shapes.ShapeVisitor$Builder
. Usesoftware.amazon.smithy.model.shapes.ShapeVisitor$Default
instead. (#413) software.amazon.smithy.model.Model#getTraitDefinitions
andgetTraitShapes
were removed in favor ofsoftware.amazon.smithy.model.Model#getShapesWithTrait
. (#412)
- The deprecated IDL operation syntax has been removed (#373)
- The deprecated
NodeFactory
interface has been removed. (#265) - The deprecated
ShapeIndex
class and all related APIs have been removed. (#266) - Support for the deprecated
0.4.0
model version has been removed. (#267) - The
aws.api#service
trait no longer supports the deprecatedsdkServiceId
,arnService
, orproductName
properties. (#268) - The deprecated
TemplateEngine
andDefaultDataTemplateEngine
have been removed. (#268) - The deprecated
smithy.validators
andsmithy.suppressions
are no longer used as aliases for validators and suppressions. (#268) - The
smithy.api#references
andsmithy.api#idRef
traits no longer support relative shape IDs. (#268)
A significant overhaul of the specification and guides has been completed. This includes a better flow to the spec, more complete guides, deeper documentation of AWS specific components, and a complete redesign. Many direct links to components of the documentation will have changed.
- Add security to individual operations in OpenAPI conversion (#329)
- Fix an issue with header casing for
x-api-key
integration with API Gateway (#330) - Fix discrepancies in
smithy-aws-protocol-tests
(#333, #335, #349)
- Add
RenameShapes
model transformer (#318) - Build
ValidationEvents
are now sorted (#263) - Smithy CLI logging improvements (#263)
- Model builds fail early when syntax errors occur (#264)
- Warn when a deprecated trait is applied to a shape (#279)
- Fix behavior of
schemaDocumentExtensions
when converting to OpenAPI (#320) - Fix discrepancies in
smithy-aws-protocol-tests
(#309, #321) - Properly format test case results (#271)
- Fix dropping one character text block lines (#285)
- Builds run parallel projections in parallel only if there are more than one (#263)
- Run Smithy test suites as parameterized tests (#263)
- Migrate protocol tests to new operation syntax (#260)
- Build protocol tests with the Smithy Gradle plugin (#263)
- Deprecate using explicitly
smithy.api
for trait removal (#306)
- Updated Operation syntax in the Smithy IDL (#253)
- Updated specification for XML traits (#242)
- Add the
@aws.api#ec2QueryName-trait
trait (#251) - Add AWS protocol test models (#246, #247, #250, #255, and #258)
- Use URLConnection cache setting in ModelAssembler (#244)
- Use list of string for queryParams in the
httpRequestTests
trait (#240)
- Allow XML maps to be flattened (#205)
- Add and remove shape members to model automatically (#206)
- Deprecate ShapeIndex in favor of Model (#209)
- Allow the sensitive trait to be applied to all but operations, services, and resources (#212)
- Added 0.5.0 IDL and AST format (#213)
- Allow min to equal max in range trait (#216)
- Added validation for length trait values (#217)
- Limit streaming trait to top-level members (#221)
- Added protocol compliance test traits (#226)
- Added ability to configure timestamp validation (#229)
- Moved
TemplateEngine
implementation into FreeMarker implementation (#230) - Added
BoxIndex
(#234) - Added more expect methods to
Shape
andModel
(#237)
- Update smithy-build to be streaming (#211)
- Prevent bad list, set, and map recursion (#204)
- Properly allow omitting endpoint discovery operation inputs (#220)
- Allow overriding state management in CodeWriter (#186)
- Allow the
xmlFlattened
trait to be applied to members (#191) - Add helper to determine HTTP-based timestamp formats (#193)
- Allow specifying XML namespace prefixes (#195)
- Add
SymbolContainer
, an abstraction overSymbol
s that enables easily creating and aggregatingSymbols
(#202)
- Escape popped state content (#187)
- Make shape ID serialization consistent (#196)
- Exclude private members targeted in JSON schema converters (#199)
- Fix naming collisions in JSON schema output (#200)
- Update
equals
to included typed bag parents (#201)
- Add support for AWS Client Endpoint Discovery (#165)
- Refactor event streams to target members (#171)
- Add support for aliasing referenced
Symbol
s (#168) - Add support for
Symbol
s to introduce dependencies (#169) - Add ability to manually escape reserved words in
ReservedWordSymbolProvider
(#174) - Add method to gather dependencies for
Symbol
s (#170) - Add a caching
SymbolProvider
(#167) - Improve the usability of
CodeWroter#openBlock
(#175) - Improve the usability of
PluginContext
(#181)
- Disable URLConnection cache in CLI (#180)
- Fix issue with generated authentication for CORS checks (#179)
- Set the
defaultTimestampFormat
toepoch-seconds
foraws.rest-json
protocols in OpenAPI (#184)
- Clean up
CodeWriter
modifiers (#143) - Add typed
ObjectNode
member expectation functions (#144) - Add
expectShapeId
for fully-qualified shape ID (#147) - Add helper to
EnumTrait
to check if it has names (#148) - Add
Symbol
references (#149) - Add
ReservedWords
builder for simpler construction (#150) - Allow using path expressions in paginator outputs (#152)
- Add method to get non-trait shapes (#153)
- Add method to write class resource to manifest (#157)
- Allow
authType
to be specified (#160)
- Fix collection and gradle doc issues (#145)
- Make
AuthorizerDefinition
definition private (#146) - Fix put handling on
ResourceShape
(#158) - Fix parse error when
apply
is at eof (#159) - Prevent
list
/set
member from targeting container (#162) - Allow model assembling from symlink model files / directory (#163)