Skip to content

Commit b525429

Browse files
template-application (#605)
Summary: - Consume latest `any-sdk`, which supports `v0.2.0` templates. - Support for naive XML to JSON transform in response bodies. - Added robot test `Select Star from Naive XML to JSON Response Transform`. - Added robot test `Select Projection from Naive XML to JSON Response Transform`.
1 parent d29d224 commit b525429

File tree

4 files changed

+94
-4
lines changed

4 files changed

+94
-4
lines changed

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ require (
1818
github.com/spf13/cobra v1.4.0
1919
github.com/spf13/pflag v1.0.5
2020
github.com/spf13/viper v1.10.1
21-
github.com/stackql/any-sdk v0.4.2-alpha08
21+
github.com/stackql/any-sdk v0.4.2-beta03
2222
github.com/stackql/go-suffix-map v0.0.1-alpha01
2323
github.com/stackql/psql-wire v0.1.2-alpha01
2424
github.com/stackql/stackql-parser v0.0.16-alpha01
2525
github.com/stretchr/testify v1.10.0
26+
golang.org/x/mod v0.25.0
2627
golang.org/x/sync v0.15.0
2728
gonum.org/v1/gonum v0.15.1
2829
gopkg.in/yaml.v2 v2.4.0
@@ -124,7 +125,6 @@ require (
124125
go.uber.org/zap v1.21.0 // indirect
125126
golang.org/x/crypto v0.39.0 // indirect
126127
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 // indirect
127-
golang.org/x/mod v0.25.0 // indirect
128128
golang.org/x/net v0.41.0 // indirect
129129
golang.org/x/oauth2 v0.26.0 // indirect
130130
golang.org/x/sys v0.33.0 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,8 +467,8 @@ github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
467467
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
468468
github.com/spf13/viper v1.10.1 h1:nuJZuYpG7gTj/XqiUwg8bA0cp1+M2mC3J4g5luUYBKk=
469469
github.com/spf13/viper v1.10.1/go.mod h1:IGlFPqhNAPKRxohIzWpI5QEy4kuI7tcl5WvR+8qy1rU=
470-
github.com/stackql/any-sdk v0.4.2-alpha08 h1:v5Il3jgOjS7iC7tTub8il7Tv9Dc9epX4oSeHXD08Km4=
471-
github.com/stackql/any-sdk v0.4.2-alpha08/go.mod h1:KTVgzZ2jlvGET55T/vzM7J+yIqpDOxbYFkoydaCs2K0=
470+
github.com/stackql/any-sdk v0.4.2-beta03 h1:kzL4RwYNKdb1Vu0a2+wBCZ8zT1Uql/xf+FZmmAlXMj8=
471+
github.com/stackql/any-sdk v0.4.2-beta03/go.mod h1:KTVgzZ2jlvGET55T/vzM7J+yIqpDOxbYFkoydaCs2K0=
472472
github.com/stackql/go-suffix-map v0.0.1-alpha01 h1:TDUDS8bySu41Oo9p0eniUeCm43mnRM6zFEd6j6VUaz8=
473473
github.com/stackql/go-suffix-map v0.0.1-alpha01/go.mod h1:QAi+SKukOyf4dBtWy8UMy+hsXXV+yyEE4vmBkji2V7g=
474474
github.com/stackql/psql-wire v0.1.2-alpha01 h1:RMBRURGspmSNqm2/sgoEc+D6Sri2y/3drjl4nKlOOi4=

test/registry/src/aws/v0.1.0/services/ec2.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45792,6 +45792,42 @@ components:
4579245792
insert: []
4579345793
update: []
4579445794
delete: []
45795+
volumes_naively_presented:
45796+
id: aws.ec2.volumes_naively_presented
45797+
name: volumes_naively_presented
45798+
title: volumes_naively_presented
45799+
methods:
45800+
describeVolumes:
45801+
config:
45802+
queryParamTranspose:
45803+
algorithm: AWSCanonical
45804+
requestTranslate:
45805+
algorithm: get_query_to_post_form_utf_8
45806+
pagination:
45807+
requestToken:
45808+
key: NextToken
45809+
location: query
45810+
responseToken:
45811+
key: $.next_page_token
45812+
location: body
45813+
operation:
45814+
$ref: '#/paths/~1?Action=DescribeVolumes&Version=2016-11-15/get'
45815+
response:
45816+
mediaType: application/xml
45817+
overrideMediaType: application/json
45818+
openAPIDocKey: '200'
45819+
schema_override:
45820+
$ref: '#/components/schemas/DescribeVolumesOutput'
45821+
transform:
45822+
body: >-
45823+
{{ toJson . }}
45824+
type: 'golang_template_mxj_v0.2.0'
45825+
sqlVerbs:
45826+
select:
45827+
- $ref: '#/components/x-stackQL-resources/volumes_naively_presented/methods/describeVolumes'
45828+
insert: []
45829+
update: []
45830+
delete: []
4579545831
volumes_poorly_presented:
4579645832
id: aws.ec2.volumes_poorly_presented
4579745833
name: volumes_poorly_presented
@@ -51281,6 +51317,14 @@ components:
5128151317
- description: Information about the status of the volumes.
5128251318
VolumeId:
5128351319
type: string
51320+
DescribeVolumesOutput:
51321+
type: object
51322+
properties:
51323+
DescribeVolumesResponse:
51324+
xml:
51325+
name: DescribeVolumesResult
51326+
$ref: '#/components/schemas/DescribeVolumesResult'
51327+
5128451328
DescribeVolumesResult:
5128551329
type: object
5128651330
example:

0 commit comments

Comments
 (0)