Giter Site home page Giter Site logo

insanoid / swiftyjsonaccelerator Goto Github PK

View Code? Open in Web Editor NEW
944.0 40.0 121.0 4.48 MB

macOS app to generate Swift 5 code for models from JSON (with Codeable)

License: MIT License

Swift 98.54% Ruby 0.27% Makefile 1.19%
swift json-files json-generator swift5 codeable marshalling json hacktoberfest

swiftyjsonaccelerator's Introduction

Logo

SwiftyJSONAccelerator - MacOS app Codeable Model file Generator For Swift 5

Build Status codecov

Installing & Building

  • Building:

    pod install
    

    You will also need to install SwiftFormat with brew install swiftformat and SwiftLint with brew install swiftlint.

  • Download dmg: Download the .app (v2.2.0)

Common Issues

  • SwiftyJSONAccelerator can't be opened because Apple cannot check it for malicious software.: Run the following command xattr -d com.apple.quarantine <app-path>.

Features

Logo

A Swift model generator like the Objective-C JSONAccelerator. Formats and generates models for the given JSON and also breaks them into files making it easy to manage and share between several models.

  • The models that are generated depend Swift's inbuilt Codeable feature making encoding and decoding objects a thing of the past.
  • Allows to opt for either optional or non-optional variables.
  • Allows an array of a certain object type with different properties to be merged into a single model with all properties.
  • Click Load folder with JSON files + Config to generate all possible models for given folder with JSON files, note this needs a .config.json as this uses the CLI logic internally.

Contributions and Requests

Any suggestions regarding code quality of the app, generated code's quality, Swift related improvements and pull requests are all very welcome. Please make sure you submit the pull request to the next release branch and not the master branch.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.