@AttilaTheFun AttilaTheFun released this Oct 21, 2017 · 2 commits to master since this release

Assets 2
0.6.1

Make library static

@AttilaTheFun AttilaTheFun released this Oct 21, 2017 · 3 commits to master since this release

Assets 2

This release updates the project structure to make Sources, Tests, and Fixtures top level folders.
It also updates the package syntax to use Swift Package Manager tools version 4.0 which allows for the specification of source directories on a per-target basis. Now, when generating the xcodeproj it will no longer try to include the fixture files in your project. As this is a breaking change, the minor version has been increased. It also includes a bug fix for decoding Object schema, where objects were required to have properties (even if it was an empty dictionary). Now if the properties field is omitted, it's assumed to be an empty dictionary.

Pre-release

@AttilaTheFun AttilaTheFun released this Aug 30, 2017 · 6 commits to master since this release

Assets 2
0.5.1

Remove unused ObjectMapper imports
Pre-release
Pre-release

@AttilaTheFun AttilaTheFun released this Aug 30, 2017 · 7 commits to master since this release

Assets 2

This release completely refactors the library to support Swift 4 and leverage the new Codable protocol. The ObjectMapper dependency has been removed. This release is tagged as a pre-release because Swift 4 hasn't been officially released yet. Once the Xcode 9 GM seed is released, we'll add a Readme and cut 1.0.

@AttilaTheFun AttilaTheFun released this Jul 12, 2017 · 8 commits to master since this release

Assets 2

Changes in this release:

  • Added Tag type and 'tags' definitions to Swagger object
  • Added ExternalDocumentation type to Schema, Operation, Swagger and Tag
  • Improved + consolidated reference resolution. Fixed a bug with cyclic references.
  • Separated Schema into Schema and SchemaType, the latter being an enum.
  • Separated Items into Items and ItemsType, the latter being an enum.
  • Extracted metadata from the enum cases into Schema and Items respectively.
  • VersionTransform is now a struct for better consistency in the API.
  • New 'multi' case for CollectionType, used for query strings "foo=a&foo=b"
  • Added / cleaned up security requirements.
  • Fixed several URL mappings that were likely failing (and untested) before.
  • Removed Reference and Pointer from the public API - they are only used during building.
  • Added more granularity to DecodingError, including a localized description, file and line numbers.
  • Made top-level parameters, definitions, and responses into dictionaries (instead of structures) for better ergonomics.

Many thanks to @n8chur and @yonaskolb for all of their feedback and contributions!

Jul 9, 2017
Fix bug decoding schemes, make version transform internal

@AttilaTheFun AttilaTheFun released this Jun 28, 2017 · 30 commits to master since this release

Assets 2

Add Metadata to $ref schemas (#14)

  • Add Metadata to $ref schemas

This allows things like descriptions or nullability to be applied to a reference to another schema.

  • Minor updates based on PR feedback.

  • Use (Metadata, Structure<Schema>) instead of SchemaStructure.

  • Break long line onto multiple lines.

Jun 15, 2017
Add file data type and ‘any’ data type
Assets 2
Add example support. (#10)

* Add example support.

- Adds `example` support to schema properties.
- Adds support for `x-example` on parameter definitions.
- Adds an `other(String)` type to `StringFormat`.

* Add spaces around content inside one line closure.

* Use fixture helper method to get jsonString.

* Updates based on PR feedback.

* More updates based on PR feedback.