Skip to content

Commit

Permalink
feat: TestBed BigInteger skeleton implementation (#116)
Browse files Browse the repository at this point in the history
* feat: BigInteger skeleton implementation

* feat: BigInteger skeleton implementation

* chore: Use shared Makefile
  • Loading branch information
ShubhamChaturvedi7 authored Feb 6, 2023
1 parent b1331dc commit 86cac4d
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
13 changes: 13 additions & 0 deletions TestModels/SimpleTypes/BigInteger/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0

CORES=2

include ../../SharedMakefile.mk

NAMESPACE=simple.types.bigInteger

# This project has no dependencies
# DEPENDENT-MODELS:=
# LIBRARIES :=
transpile_net_dependencies:
32 changes: 32 additions & 0 deletions TestModels/SimpleTypes/BigInteger/Model/BigInteger.smithy
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
namespace simple.types.bigInteger

@aws.polymorph#localService(
sdkId: "SimpleBigInteger",
config: SimpleBigIntegerConfig,
)
service SimpleTypesBigInteger {
version: "2021-11-01",
resources: [],
operations: [ GetBigInteger ],
errors: [],
}

structure SimpleBigIntegerConfig {}

operation GetBigInteger {
input: GetBigIntegerInput,
output: GetBigIntegerOutput,
}

operation GetBigIntegerKnownValueTest {
input: GetBigIntegerInput,
output: GetBigIntegerOutput,
}

structure GetBigIntegerInput {
value: BigInteger
}

structure GetBigIntegerOutput {
value: BigInteger
}
9 changes: 9 additions & 0 deletions TestModels/SimpleTypes/BigInteger/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# BigInteger

This project will implement the smithy type [bigInteger](https://smithy.io/2.0/spec/simple-types.html#biginteger) and the associated operations in `dafny`.

## Status

This project does not build. Neither the `software.amazon.polymorph.smithydotnet` nor the `software.amazon.polymorph.smithydafny` projects support code generation for the "bigInteger" shape. This project cannot be used to generate the BigInteger type for either Dafny or Dotnet.

Once the Polymorph code generators supports code generation for this shape, these files should be extended to complete the type implementation.

0 comments on commit 86cac4d

Please sign in to comment.