Skip to content
Discussion options

You must be logged in to vote

Hey @sirimhrzn,

you can replace the element in the containing type from AnyElement to GetParameterValuesResponse.

For a rough setup have a look to the custom_names example. But instead of changing the display_name of your type, you can loop through it's elements and change the type to what you need.

Here is a rough untested (!) code snippet:

    // Get the identifier for the target type
    let target_ident = IdentTriple::from((IdentType::Type, "GetParameterValuesResponse"));

    // Get the identifier for the containing type
    let ident = IdentTriple::from((IdentType::Type, "ContainingType"));
    let ident = ident.resolve(schemas)?;
    
    // Get the containing type
    let ty = types.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@m4siri
Comment options

@Bergmann89
Comment options

@m4siri
Comment options

Answer selected by m4siri
Comment options

You must be logged in to vote
1 reply
@Bergmann89
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants