diff --git a/specification/cosmos-db/data-plane/readme.md b/specification/cosmos-db/data-plane/readme.md index 9adbc06b50b1..ba1ff2a95e5f 100644 --- a/specification/cosmos-db/data-plane/readme.md +++ b/specification/cosmos-db/data-plane/readme.md @@ -203,29 +203,7 @@ csharp: ## Python -These settings apply only when `--python` is specified on the command line. -Please also specify `--python-sdks-folder=`. - -``` yaml $(python) -python-mode: create -python: - license-header: MICROSOFT_MIT_NO_VERSION - payload-flattening-threshold: 2 - namespace: azure.tables - package-name: azure-tables - clear-output-folder: true - no-namespace-folders: true -``` - -### Tag: package-2019-02 and python - -These settings apply only when `--tag=package-2019-02 --python` is specified on the command line. - -``` yaml $(tag) == 'package-2019-02' && $(python) -python: - namespace: azure.tables.storage.v2019_02_02 - output-folder: $(python-sdks-folder)/azure-tables-storage/azure/tables/storage/v2019_02_02 -``` +See configuration in [readme.python.md](./readme.python.md) ## Go diff --git a/specification/cosmos-db/data-plane/readme.python.md b/specification/cosmos-db/data-plane/readme.python.md new file mode 100644 index 000000000000..0d182d9db567 --- /dev/null +++ b/specification/cosmos-db/data-plane/readme.python.md @@ -0,0 +1,38 @@ +## Python + +These settings apply only when `--python` is specified on the command line. +Please also specify `--python-sdks-folder=`. + +``` yaml $(python) +python-mode: create +python: + license-header: MICROSOFT_MIT_NO_VERSION + namespace: azure.table + package-name: azure-table + clear-output-folder: true + no-namespace-folders: true + enable-xml: true + vanilla: true + output-folder: "$(python-sdks-folder)/sdk/cosmos/azure-cosmos-table/azure/table/_generated" + package-version: "2019-02-02" +``` + +### Use strings for dates when python doesn't have enough precision +``` yaml +directive: +- from: swagger-document + where: $.definitions.AccessPolicy.properties + transform: > + $.Start.format = "str"; + $.Expiry.format = "str"; +``` + +### SignedIdentifier shouldn't require an AccessPolicy, only ID +``` yaml +directive: +- from: swagger-document + where: $.definitions.SignedIdentifier + transform: > + $.required = [ "Id" ]; +``` +