Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add schematobicep #8

Merged
merged 2 commits into from
Sep 6, 2024
Merged

Add schematobicep #8

merged 2 commits into from
Sep 6, 2024

Conversation

mclacore
Copy link
Contributor

@mclacore mclacore commented Sep 6, 2024

No description provided.

chrisghill and others added 2 commits August 2, 2024 11:05
* update test files, allowed to enum

* declare description

* reformatting, adding min/max value support

* moving creating param line to helper function

* trying to handle defaults

* fix defaults (strings), still fixing min/max lengths

* making test easier to see

* fixing default int, prefixing description with sys to avoid collisions

* removing notes about defaults

* moving comment about description decorator

* min/max len string and secure in

* min/max len array, default array

* moving default array complexity to new helper

* default object (almost) need to fix map order

* default object working

* cleaning up var names

* allowed objects working

* splitting out functionality to helper for allowed object

* refactor pass 1, everything but array/object/allowed optimized

* renaming functions, moving them around, fixed arrays

* renamed more functions

* allowed arrays/objects passing, but need to refactor

* remove unneeded test, sloppily solved default objects/arrays

* New tests, removing some comments

* simplified parseArray & parseObject, just need to handle nest levels

* Fixing nest levels after refactoring

- Updated renderBicep, parseArray, and parseObject to pass the prefix
level back and forth to maintain nesting
- Updated test JSON for multi-level nested objects and arrays
- Updated test bicep for multi-level nested objects and arrays

* Fixed spacing for all but last closing bracket

* Fixed deep nesting for objects/arrays

* adding error handling, restructured order of functions

* Fixes based on suggestions

* errors.New -> fmt.Errorf
* removing excess error calling

* Merging a function, handling some errors
@mclacore mclacore marked this pull request as ready for review September 6, 2024 17:31
@mclacore mclacore merged commit 5d04f60 into main Sep 6, 2024
@mclacore mclacore deleted the add-schematobicep branch September 6, 2024 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants