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

Then in an allOf is not applied to model #1208

Open
jonaslagoni opened this issue Apr 2, 2023 · 5 comments
Open

Then in an allOf is not applied to model #1208

jonaslagoni opened this issue Apr 2, 2023 · 5 comments
Labels
bug Something isn't working stale

Comments

@jonaslagoni
Copy link
Member

jonaslagoni commented Apr 2, 2023

Describe the bug

In both next and master, given the following schema, I would expect 3 models to be generated, Action and PackageAction and an enum called Type.

And the model Action I would expect to have the property type:

class Action {
  private _reservedType?: ReservedType;
  private _config?: any | PackageAction;
  private _additionalProperties?: Map<string, any>;
  ...
}

Schema:

{
    "type": "object",
    "title": "Action",
    "properties": {
        "type": {
            "type": "string",
            "description": "The type of action for automator to run, when a new version has been found",
            "enum": [
                "package"
            ]
        },
        "config": true
    },
    "allOf": [
        {
            "if": {
                "properties": {
                    "type": {
                        "const": "package"
                    }
                }
            },
            "then": {
                "properties": {
                    "config": {
                        "$ref": "#/definitions/PackageAction"
                    }
                }
            }
        }
    ],
    "definitions": {
        "PackageAction": {
            "type": "object",
            "properties": {
                "script": {
                    "type": "string",
                    "description": "The script to run in the package file"
                }
            }
        }
    }
}
@jonaslagoni jonaslagoni added the bug Something isn't working label Apr 2, 2023
@jonaslagoni jonaslagoni changed the title Then in an allOf does not generate a model Then in an allOf is not applied to model Apr 2, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Aug 1, 2023

This issue has been automatically marked as stale because it has not had recent activity 😴

It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.

There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.

Thank you for your patience ❤️

@github-actions github-actions bot added the stale label Aug 1, 2023
@black-snow
Copy link

not stale

@github-actions github-actions bot removed the stale label Oct 13, 2023
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity 😴

It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.

There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.

Thank you for your patience ❤️

@github-actions github-actions bot added the stale label Feb 11, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 10, 2024
@jonaslagoni jonaslagoni reopened this Jun 10, 2024
@jonaslagoni
Copy link
Member Author

Re-checking this.

@github-actions github-actions bot removed the stale label Jun 11, 2024
Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity 😴

It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.

There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.

Thank you for your patience ❤️

@github-actions github-actions bot added the stale label Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

2 participants