Comments (2)
Cheers for accepting that.
Yeah, nah, I wasn't sure about the default change either. What I did was add to GetTransactions endpoint in Cdr.Banking.xml like this:
<Operation Name="GetTransactions" Text="Get transaction for account" OperationType="GetColl" WebApiRoute="{accountId}/transactions" PagingArgs="true" DataCosmosPartitionKey="accountId">
<!-- Note usage of ValidatorFluent which will inject the code as-is into the validation logic; being a common validator 'Validators.Account' that will perform the authorization check. -->
<Parameter Name="AccountId" Type="string" ValidatorFluent="Common(Validators.AccountId)" WebApiFrom="FromRoute" IsMandatory="true" />
<Parameter Name="Args" Type="TransactionArgs" Validator="TransactionArgsValidator" />
<Parameter Name="SomethingName" Type="List<string>" />
</Operation>
So it might be because I added it as the last parameter that on regen the extra controller method parameter without a default was added after the existing default controller parameters which then caused a syntax error. Will use Default="default"
from beef.
Pull request accepted; many thanks
However, with the exception of the Web API Controller parameter default. This fix created other issues with the likes of Create
and Update
where the value was defaulting to = default
where the value was not nullable. If a parameter should be defaulted for a controller then the parameter default code-gen configuration should be used; for example: <Parameter Name="Names" Type="List<string>" Default="default" />
.
@damiankennedy2012, if you are having an issue with the defaulting are you able to provide further context/example so I can replicate?
Published Beef.CodeGen.Core
NuGet package version 4.1.6
.
from beef.
Related Issues (20)
- DataMapping IndexOutOfRangeException exception for incorrect filed names. HOT 1
- Cant add people from middle ages to Beef.Demo
- Sql Text/NText columns cant be used in the Cdc Code Generator as they arent mapped to a .NET type HOT 1
- In the Demo project, RegenerateAll.ps1 changes working directory HOT 1
- Feature idea - redirect from / to swagger
- Feature idea - docker-compose/tye file for running Mr.Hr sample with SQL database
- Feature Request - Asynchronous Call Integrity HOT 2
- Namespaces conflict has occured when creating "User" entity with Cosmos DB HOT 1
- Cosmos DB "PartitionKey has fewer components than defined the collection resource." error in Azure App Service HOT 1
- AgentTester RegisterBeforeRequest ineffective withhin test class.
- .ExpectChangeLogCreated( ) fails when API takes a little longer to return value. HOT 3
- membersToIgnore parameter of ExpectEvent<T>( ) doesn't work HOT 3
- OmitEntityBase breaks entities when used with a custom PathCommon HOT 1
- Merging reference data does not work when using multibyte-charractors HOT 1
- idea: Add conditional branching based on the existence of an ExtraProperty item and an item value to the template in Demo sample.
- Project naming could create confusion with existing "BeEF" public project HOT 1
- Test fails: 'The configured user limit (128) on the number of inotify instances has been reached, or the per-process limit on the number of open file descriptors has been reached' HOT 3
- OpenAPI (Swagger) contains unnecessary models HOT 1
- PagingArgs parameter does not recognized by OpenAPI (Swagger) HOT 3
- Security Policy violation Outside Collaborators HOT 46
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from beef.