Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Merge requests
  • !1793

[Dart][Jaguar] and proto serialization support

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/jaumard/feature/update_jaguar_gen into master Jan 02, 2019
  • Overview 0
  • Commits 2
  • Pipelines 0
  • Changes 231

Created by: jaumard

Here is my current work to allow the generator of jaguar dart to support either json or proto serialization. I've added a serializarion param to choose json or proto. I proto models should be generated as proto files and not dart files. For now I'm blocked because I'm trying to do this:

message {{classname}} {
    {{#vars}}
    {{{datatype}}} {{name}} = {{@index}};
    {{/vars}}
}

Apparently the {{@index}} is not supported :/ and return empty. But in proto definition you need to specify the index of each field like:

message Person {
  string name = 1;
  int32 id = 2;
  string email = 3;

}
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/jaumard/feature/update_jaguar_gen