Swiftpack.co - Swift Packages by CreateAPI

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.

Packages published by CreateAPI

CreateAPI/CreateAPI 0.2.0
Delightful code generator for OpenAPI specs
⭐️ 385
🕓 49 weeks ago
🔖 Release Notes

Releases

The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
0.2.0
49 weeks ago
## What's Changed * Update Get dependency to require 2.1.x or later by @mgrider in https://github.com/CreateAPI/CreateAPI/pull/160 * Support multipart/form-data as opt-in feature by @ainame in https://github.com/CreateAPI/CreateAPI/pull/172 * Fix bug where object schemas representing an `allOf` type with more than one schema but only one property were inferred as the wrong type by @liamnichols in https://github.com/CreateAPI/CreateAPI/pull/181 ## New Contributors * @mgrider made their first contribution in https://github.com/CreateAPI/CreateAPI/pull/160 **Full Changelog**: https://github.com/CreateAPI/CreateAPI/compare/0.1.1...0.2.0 ## Artifact Bundle Checksum: `6f8a3ce099f07eb2655ccaf6f66d8c9a09b74bb2307781c4adec36609ddac009 ` ```swift .binaryTarget( name: "create-api", url: "https://github.com/CreateAPI/CreateAPI/releases/download/0.2.0/create-api.artifactbundle.zip", checksum: "6f8a3ce099f07eb2655ccaf6f66d8c9a09b74bb2307781c4adec36609ddac009" ) ```
0.1.1
1 year ago
## What's Changed * List `jellyfin-sdk-swift` as a project using CreateAPI by @LePips in https://github.com/CreateAPI/CreateAPI/pull/148 * Add Xcode 14 and Swift 5.7 to CI by @liamnichols in https://github.com/CreateAPI/CreateAPI/pull/156 * Fix issue with Discriminator type resolution that impacted the decoding of `oneOf` types in some conditions by @liamnichols in https://github.com/CreateAPI/CreateAPI/pull/158 * Improve error messages that are used when `oneOf` object decoding fails by @liamnichols in https://github.com/CreateAPI/CreateAPI/pull/159 **Full Changelog**: https://github.com/CreateAPI/CreateAPI/compare/0.1.0...0.1.1 ## Artifact Bundle Checksum: `0f0cfe7300580ef3062aacf4c4936d942f5a24ab971e722566f937fa7714369a` ```swift .binaryTarget( name: "create-api", url: "https://github.com/CreateAPI/CreateAPI/releases/download/0.1.1/create-api.artifactbundle.zip", checksum: "0f0cfe7300580ef3062aacf4c4936d942f5a24ab971e722566f937fa7714369a" ) ```
0.1
1 year ago
CreateAPI 0.1 makes some big changes to help prepare for even more features and enhancements. To make this possible, we've had to revisit a lot of parts of the way that the generator is used and while at the core there hasn't been much change, it's likely that you will need to adjust your configuration files and the way that you use the cli. For more details, please refer to the release notes below. As always, if you have any problems then please feel free to create a new issue! ### Enhancements - [#69](https://github.com/CreateAPI/CreateAPI/issues/69) - Publish release to Homebrew. - [#48](https://github.com/CreateAPI/CreateAPI/issues/48) - Support Swift Package Plugins. - [#58](https://github.com/CreateAPI/CreateAPI/issues/58) - Improve readme, add usage documentation and contributing guides. - [#47](https://github.com/CreateAPI/CreateAPI/issues/47) - Override any option in the configuration file from the command line using `--config-option`. - [#85](https://github.com/CreateAPI/CreateAPI/issues/85) - Add custom package dependencies in generated package. - [#114](https://github.com/CreateAPI/CreateAPI/issues/114) - Allow custom mapping between schema data types/formats and Swift types used in generation. - [#125](https://github.com/CreateAPI/CreateAPI/pull/125) - Raise an error if the `--config` file doesn't exist instead of silently falling back to the default options. - [#90](https://github.com/CreateAPI/CreateAPI/pull/90) - Produce warnings when configuration files contain unknown or deprecated options. - [#76](https://github.com/CreateAPI/CreateAPI/pull/76) - Add `--version` option/command. - [#71](https://github.com/CreateAPI/CreateAPI/issues/71) - Support excluding individual properties on entities. - [#116](https://github.com/CreateAPI/CreateAPI/pull/116), [#141](https://github.com/CreateAPI/CreateAPI/pull/141) - Write extension source files into **Extensions** directory and improve their filenames. - [#131](https://github.com/CreateAPI/CreateAPI/pull/131) - Raise an error if you use `--clean` when the `--output` directory also contains the schema or config file. - [#138](https://github.com/CreateAPI/CreateAPI/pull/138) - Trim whitespace from the `fileHeaderComment`. - [#140](https://github.com/CreateAPI/CreateAPI/pull/140) - Run path generation in parallel. ### Breaking Changes - [#83](https://github.com/CreateAPI/CreateAPI/pull/83) - Generated packages and paths now depend on Get 1.0.2 or later. If you don't use Get, your `Request` type must expose an initializer that matches the [initializer defined in Get](https://github.com/kean/Get/blob/db5248ce985c703c5ea0030b7c4d3f908db304c9/Sources/Get/Request.swift#L27-L41). - [#88](https://github.com/CreateAPI/CreateAPI/issues/88) - When generating a Swift Package, the **Package.swift** file and all other sources are written to the root of the `--output` directory instead of being nested inside a subdirectory. - [#132](https://github.com/CreateAPI/CreateAPI/pull/132) Default output directory is now **./CreateAPI** when `--output` is not specified. - [#112](https://github.com/CreateAPI/CreateAPI/issues/112) - The `rename.properties` option now understands property names as defined in the original schema and not after applying CreateAPI transformations (such as case conversion or swifty style booleans). - [#125](https://github.com/CreateAPI/CreateAPI/pull/125) - The generator will now error if the path defined using `--config` did not contain a valid file (prior behaviour was to fallback to the default configuration). - [#47](https://github.com/CreateAPI/CreateAPI/issues/47) - Command Line Argument options that alter the generate output have now been moved into the configuration file and the behaviour may have also been adjusted. - `--split` (`-s`) is now the default behavior. Use the `mergeSources` option to merge generated source files. - `--filename-template` has been replaced by the `entities.filenameTemplate` and `paths.filenameTemplate` options. - `--entityname-template` has been replaced by the `entities.nameTemplate` option. - `--generate` has been replaced by the `generate` option and now accepts `paths`, `entities`, `enums` and `package` to customize which components are generated. - `--package` and `--module` have been incorporated as part of the `generate` option (see above) for controlling the generated outputs and the module/package name is configured using the `module` option. - `--vendor` has been replaced by the `vendor` option. - [#100](https://github.com/CreateAPI/CreateAPI/issues/100) - For `entities`, `isGeneratingStructs` and `isMakingClassesFinal` have merged into a single `defaultType` option (accepted values `struct`, `class` or `finalClass`). - `isGeneratingMutableClassProperties` and `isGeneratingMutableStructProperties` have been replaced by a single `mutableProperties` option. Specify `true`, `false`, `structs` or `classes` instead. - `entitiesGeneratedAsClasses` and `entitiesGeneratedAsStructs` have been replaced by a single `typeOverrides` option. - [#98](https://github.com/CreateAPI/CreateAPI/issues/98) - `comments` options have been replaced with a single `commentOptions` property that accepts `false`, `true` or an array containing any of `[title, description, example, externalDocumentation, capitalized]`. - [#97](https://github.com/CreateAPI/CreateAPI/issues/97) - `isReplacingCommonAcronyms`, `addedAcronyms` and `ignoredAcronyms` have been replaced with a single `acronyms` option. - [#94](https://github.com/CreateAPI/CreateAPI/issues/94) - `isSwiftLintDisabled` has been removed. Use `fileHeaderComment` if you want to replicate this behavior. - [#93](https://github.com/CreateAPI/CreateAPI/issues/93) - `isAdditionalPropertiesOnByDefault` has been removed with no replacement. - [#92](https://github.com/CreateAPI/CreateAPI/issues/92) - Every generated `Request` now includes its `operationId` and the `isAddingOperationIds` option has now been removed. - [#91](https://github.com/CreateAPI/CreateAPI/pull/91) - Fixed a spelling mistake in `overridenResponses` and `overridenBodyTypes`. - [#63](https://github.com/CreateAPI/CreateAPI/issues/63) - `isInliningPropertiesFromReferencedSchemas` behavior is now enabled by default and the option has renamed to `inlineReferencedSchemas`. - [#75](https://github.com/CreateAPI/CreateAPI/issues/75) - `isGeneratingCustomCodingKeys` behavior is now enabled by default and the option has been renamed to `optimizeCodingKeys`. - [#66](https://github.com/CreateAPI/CreateAPI/issues/66) - `access` no longer accepts an open string. The value must be either `internal` or `public`. - [#114](https://github.com/CreateAPI/CreateAPI/issues/114), [#145](https://github.com/CreateAPI/CreateAPI/pull/145) - `isUsingIntegersWithPredefinedCapacity` has been removed. You can now configure data type mappings to Swift types using the `dataTypes` option. - [#134](https://github.com/CreateAPI/CreateAPI/pull/134) - `isGeneratingEnums` has been removed and is now configurable as part of the new `generate` option. - [#89](https://github.com/CreateAPI/CreateAPI/issues/89) - Swifty style boolean properties in the configuration file have been renamed. - `isNaiveDateEnabled` **▸** `useNaiveDate` - `isPluralizationEnabled` **▸** `pluralizeProperties` - `isInliningTypealiases` **▸** `inlineTypealiases` - `isGeneratingSwiftyBooleanPropertyNames` **▸** `useSwiftyPropertyNames` - `isAddingDeprecations` **▸** `annotateDeprecations` - `entities` - `isStrippingParentNameInNestedObjects` **▸** `stripParentNameInNestedObjects` - `isAddingDefaultValues` **▸** `includeDefaultValues` - `isSortingPropertiesAlphabetically` **▸** `sortPropertiesAlphabetically` - `isGeneratingEncodeWithEncoder` **▸** `alwaysIncludeEncodableImplementation` - `isGeneratingInitWithDecoder` **▸** `alwaysIncludeDecodableImplementation` - `isGeneratingInitializers` **▸** `includeInitializer` - `isSkippingRedundantProtocols` **▸** `skipRedundantProtocols` - `isGeneratingIdentifiableConformance` **▸** `includeIdentifiableConformance` - `paths` - `isRemovingRedundantPaths` **▸** `removeRedundantPaths` - `isMakingOptionalPatchParametersDoubleOptional` **▸** `makeOptionalPatchParametersDoubleOptional` - `isInliningSimpleQueryParameters` **▸** `inlineSimpleQueryParameters` - `isInliningSimpleRequests` **▸** `inlineSimpleRequests` - `isGeneratingResponseHeaders` **▸** `includeResponseHeaders` - `isGeneratingCustomCodingKeys` **▸** `optimizeCodingKeys` - `isInliningPropertiesFromReferencedSchemas` **▸** `inlineReferencedSchemas` Refer to the [Configuration Options](https://github.com/CreateAPI/CreateAPI/blob/main/Docs/ConfigOptions.md) documentation for more information. ### Internal - [#79](https://github.com/CreateAPI/CreateAPI/pull/79) - Lint project using SwiftLint. - [#81](https://github.com/CreateAPI/CreateAPI/pull/81) - Compile generated test snapshots on Linux as part of CI checks. - [#117](https://github.com/CreateAPI/CreateAPI/pull/117) - Refactor file writing responsibility out of the `Generate` command. - [#122](https://github.com/CreateAPI/CreateAPI/pull/122) - Cleanup tests with new `snapshot(spec:name:testCompilationOnLinux:arguments:configuration:)` method. - [#120](https://github.com/CreateAPI/CreateAPI/pull/120) - Use [swift-configuration-parser](https://github.com/liamnichols/swift-configuration-parser) library. - [#128](https://github.com/CreateAPI/CreateAPI/pull/128) - Refactor CreateAPITests structure and rewrite snapshotter. - [#123](https://github.com/CreateAPI/CreateAPI/pull/123) - Automatically update AllPackages package when rerecording snapshots. - [#129](https://github.com/CreateAPI/CreateAPI/pull/129) - Introduce 'Record Snapshots' scheme to simplify rerecording snapshots. **Full Changelog**: https://github.com/CreateAPI/CreateAPI/compare/0.0.5...0.1.0 ## Artifact Bundle Checksum: `4e9d1fb023c52e423d57de0928da5d943e3e4c81f6cb903523654867e6372db7` ```swift .binaryTarget( name: "create-api", url: "https://github.com/CreateAPI/CreateAPI/releases/download/0.1.0/create-api.artifactbundle.zip", checksum: "4e9d1fb023c52e423d57de0928da5d943e3e4c81f6cb903523654867e6372db7" ) ```
0.0.5
1 year ago
## What's Changed * Support Linux by @liamnichols in https://github.com/CreateAPI/CreateAPI/pull/43 * Update Makefile by @liamnichols in https://github.com/CreateAPI/CreateAPI/pull/54 * Update generator code to point to https://github.com/kean/Get and not CreateAPI/Get by @liamnichols in https://github.com/CreateAPI/CreateAPI/pull/51 * Remove main.swift and mark CreateAPI as `@main` type directly by @liamnichols in https://github.com/CreateAPI/CreateAPI/pull/49 * Fix comment generation when using other kind of linebreaks by @liamnichols in https://github.com/CreateAPI/CreateAPI/pull/46 * Support automatically generating `Identifiable` conformance on entities by @LePips in https://github.com/CreateAPI/CreateAPI/pull/61 * Tests - Automatic Path Finding and Remove Environment Variables by @LePips in https://github.com/CreateAPI/CreateAPI/pull/62 * Single source of truth for configuration options by @liamnichols in https://github.com/CreateAPI/CreateAPI/pull/52 * Update README and use new CreateOptions module by @liamnichols in https://github.com/CreateAPI/CreateAPI/pull/65 * Produce an artifactbundle when making releases by @liamnichols in https://github.com/CreateAPI/CreateAPI/pull/67 ## New Contributors * @LePips made their first contribution in https://github.com/CreateAPI/CreateAPI/pull/61 **Full Changelog**: https://github.com/CreateAPI/CreateAPI/compare/0.0.4...0.0.5 ## Artifact Bundle Checksum: `89c75ec3b2938d08b961b94e70e6dd6fa0ff52a90037304d41718cd5fb58bd24` ```swift .binaryTarget( name: "create-api", url: "https://github.com/CreateAPI/CreateAPI/releases/download/0.0.5/create-api.artifactbundle.zip", checksum: "89c75ec3b2938d08b961b94e70e6dd6fa0ff52a90037304d41718cd5fb58bd24" ) ```
0.0.4
1 year ago
## What's Changed * Discriminator Support by @PhilipTrauner in https://github.com/CreateAPI/CreateAPI/pull/10 * Strip parent name of enum cases within nested objects by @PhilipTrauner in https://github.com/CreateAPI/CreateAPI/pull/15 * Added options for mutable properties in classes and structs by @JanC in https://github.com/CreateAPI/CreateAPI/pull/17 * Add entities name template by @imjn in https://github.com/CreateAPI/CreateAPI/pull/14 * Added imports option for entities by @JanC in https://github.com/CreateAPI/CreateAPI/pull/19 * Fix shouldGenerate check for entities.include option by @ainame in https://github.com/CreateAPI/CreateAPI/pull/20 * Fix namespace when using operations style by @simorgh3196 in https://github.com/CreateAPI/CreateAPI/pull/21 * Fix `String` type with `byte` format by @mattia in https://github.com/CreateAPI/CreateAPI/pull/25 * Fixed fileHeader option to fileHeaderComment by @imjn in https://github.com/CreateAPI/CreateAPI/pull/22 * Fixed test failures for string with byte format by @imjn in https://github.com/CreateAPI/CreateAPI/pull/26 * Fix test failures in comparing Package.swift by @imjn in https://github.com/CreateAPI/CreateAPI/pull/28 * Update repository links to github.com/CreateAPI/CreateAPI by @liamnichols in https://github.com/CreateAPI/CreateAPI/pull/35 * Support multiple discriminator mappings to share one type by @imjn in https://github.com/CreateAPI/CreateAPI/pull/36 * Update GitHub Workflow CI by @liamnichols in https://github.com/CreateAPI/CreateAPI/pull/37 * Fix allOf decoding issue by @imjn in https://github.com/CreateAPI/CreateAPI/pull/27 * Removed redundant space before struct and class declaration by @imjn in https://github.com/CreateAPI/CreateAPI/pull/38 * Decode JSON input specs using `YAMLDecoder` by @liamnichols in https://github.com/CreateAPI/CreateAPI/pull/34 * Treat single element allOf/oneOf/anyOf schemas as the nested schema by @liamnichols in https://github.com/CreateAPI/CreateAPI/pull/39 ## New Contributors * @JanC made their first contribution in https://github.com/CreateAPI/CreateAPI/pull/17 * @ainame made their first contribution in https://github.com/CreateAPI/CreateAPI/pull/20 * @mattia made their first contribution in https://github.com/CreateAPI/CreateAPI/pull/25 * @liamnichols made their first contribution in https://github.com/CreateAPI/CreateAPI/pull/35 **Full Changelog**: https://github.com/CreateAPI/CreateAPI/compare/0.0.2...0.0.4
0.0.3
2 years ago
## What's Changed * Fix an issue with `entities.include` not being used correctly **Full Changelog**: https://github.com/CreateAPI/CreateAPI/compare/0.0.2...0.0.3
0.0.2
2 years ago
## What's Changed * Add support for installation by Mint by @simorgh3196 in https://github.com/CreateAPI/CreateAPI/pull/1 * Fixed small typos in README.md by @imjn in https://github.com/CreateAPI/CreateAPI/pull/2 * Fixed wrong example in readme yaml by @imjn in https://github.com/CreateAPI/CreateAPI/pull/4 * Add Entities.include by @imjn in https://github.com/CreateAPI/CreateAPI/pull/5 * Revert "Added entityPrefix and entitySuffix to GenerateOptions.Rename" by @imjn in https://github.com/CreateAPI/CreateAPI/pull/8 * Added --clean to readme by @imjn in https://github.com/CreateAPI/CreateAPI/pull/7 * Use builtin `UUID` type for `uuid` format in schemas by @PhilipTrauner in https://github.com/CreateAPI/CreateAPI/pull/11 * Fix tests by @PhilipTrauner in https://github.com/CreateAPI/CreateAPI/pull/13 **Full Changelog**: https://github.com/CreateAPI/CreateAPI/compare/0.0.1...0.0.2
0.0.1
2 years ago
Initial pre-release
macOS
CreateAPI/NaiveDate 1.0.0
Naive date and time
⭐️ 29
🕓 2 years ago
🔖 Release Notes

Releases

The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
NaiveDate 1.0.0
2 years ago
- Bump minimum required versions - Fix SPM support (tags were not formatted correctly) - Remove CocoaPods and Carthage support
NaiveDate 0.3
6 years ago
- `Date` conversion now supports optional timezone parameters
NaiveDate 0.2.1
6 years ago
- Improve `Hashable` implementation (reduce number of collisions) - Use [tuple comparison operators](https://github.com/apple/swift-evolution/blob/master/proposals/0015-tuple-comparison-operators.md) to simplify `Comparable` implementation
NaiveDate 0.2
6 years ago
- Get rid of time zones in `NaiveDate`, `NaiveTime`, `NaiveDateTime` APIs - Add convenience initializer for `NaiveDateTime` with individual date components
NaiveDate 0.1
6 years ago
Initial release which implements `NaiveDate`, `NaiveTime`, `NaiveDateTime` types, as well as two naive date formatters.
iOS macOS watchOS tvOS
CreateAPI/HTTPHeaders 0.1.1
Parsing Simple HTTP Headers
⭐️ 11
🕓 1 year ago
🔖 Release Notes

Releases

The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
0.1.1
1 year ago
## What's Changed * Update the year in LICENSE by @liamnichols in https://github.com/CreateAPI/HTTPHeaders/pull/1 * Fix HTTPHeadersTests.testParseString() by @liamnichols in https://github.com/CreateAPI/HTTPHeaders/pull/5 * Add support for Linux by @liamnichols in https://github.com/CreateAPI/HTTPHeaders/pull/4 **Full Changelog**: https://github.com/CreateAPI/HTTPHeaders/compare/0.1.0...0.1.1
0.1
2 years ago
- Initial release
0.0.1
2 years ago
- Initial commit
iOS macOS watchOS tvOS

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics