Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
NandishAndDev opened this issue Oct 30, 2015 · 3 comments
Open

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

NandishAndDev opened this issue Oct 30, 2015 · 3 comments

Comments

@NandishAndDev
Copy link

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
@Anshulrathi
Copy link

Do we have any plugin in Intellij or Eclipse to generate YAML representation of Java POJO ?

@NathanSweet
Copy link
Member

NathanSweet commented Sep 20, 2019 via email

@Anshulrathi
Copy link

Thanks !!
I resolved my problem using below reference point.
https://www.logicbig.com/tutorials/misc/yaml/java-to-yaml.html

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

No branches or pull requests

3 participants