Skip to content

One level higher parent moving into child's directory [Windows] #1143

@oleggye

Description

@oleggye

Link to the example with commented solution: https://github.com/oleggye/jsonschema2pojo-poc

When you have parent contract e.g. Base.json in the root (e.g. /schema) and than you create the child contract Child.json (i.e. it uses extends) in sub-folder /schema/api, after plugin generation it will move parent's pojo near the child's pojo.

image

It never happens on Linux machine!

I found out the solution in your documentation - explicitly specify the order using
<sourceSortOrder>FILES_FIRST</sourceSortOrder>

image

Why didn't you set up this as default value, but set up OS dependent behavior instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions