2 Respostas
- Mais recentes
- Mais votos
- Mais comentários
0
The short answer is I can't. I removed the default values from the schema and added them to the request resolver using a util function.
Like this:
#if( $util.defaultIfNull(${context.arguments.events},0) == 1 )
The defaultIfNull will test to see if the value events param has a value and if not set it to 0
respondido há 5 anos
0
This behavior is not yet supported and, as of writing, resolver templates cannot access default values from the schema.
respondido há 5 anos
Conteúdo relevante
- AWS OFICIALAtualizada há 5 anos
- AWS OFICIALAtualizada há 3 meses
- AWS OFICIALAtualizada há 2 anos