Git Product home page Git Product logo

esjsonformatformac's Introduction

前言

  1. 最近终于开始看Swift了,发现Swift自动生成model的工具较少(JsonExport有了解到,但是不能输出YYModel及MJExtension的model)。由于之前一直使用ESJsonFormatForMac来生成OC model,于是对原库做了简单修改来适配Swift model

  2. 原库已经长时间没有更新, 用Swift导出YYModel/MJExtension的文件基本不能用。因此简单对Swift进行了适配,已经提交pr (不确定是否会合入)。想尝鲜使用下的同学可以直接在这里下载然后run即可。

主要做了以下修改

  1. Swift导出支持YYModel/MJExtension
  2. OC下对MJExtension导出mapper函数增加 mj_ 前缀
  3. key对应的值为数组时将数组的所有元素的key集中到一起再生成model(之前只取数组首元素)

esjsonformatformac's People

Contributors

donggelaile avatar

Watchers

James Cloos avatar

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.