Skip to content

How to generate yml file for a Java class object #41

Description

@NandishAndDev

This library can generate yml file for a java object given,I wanted to generate yml for the Java class object. This is to get the schema of the java class object. We have libraries to get java class to JSON . For a complex POJO, the JSON is cryptic and I prefer to have a yml representation.

Example
From

public class Phone {
    public String name;
    public String number;
}

To

Phone:
    fields:
      name:
        type: String
      number:
        type: String

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions