Comments (4)
JsonIgnore should now be recognized.
Please Try Build 1.1.24 to see if your issues are corrected.
from typescriptdefinitiongenerator.
I think it would be cool if all of the JSON.NET Attributes were observed. Then you could do something like the following:
public class Person
{
[JsonIgnore]
public string FullName { get { return $"{FirstName} {LastName}"; } }
[JsonProperty("lastName")]
public string LastName { get; set; }
[JsonProperty("firstName")]
public string FirstName { get; set; }
}
This would emit:
declare module server {
interface Person {
lastName: string;
firstName: string;
}
}
from typescriptdefinitiongenerator.
the attribute [IgnoreDataMember] works
from typescriptdefinitiongenerator.
Issue resolved with the latest version (1.1.24) @madskristensen you should close this issue
from typescriptdefinitiongenerator.
Related Issues (20)
- [JsonIgnore] Property Ignored in nested Classes
- Trigger compilation on build HOT 1
- Inheritance not working HOT 2
- Does not work on Windows 7 at all
- Null ref errors HOT 1
- How do I consume these definitions? HOT 3
- Child class in parent class should be lowercase
- Can you generate a new release pls ? HOT 6
- Namespace for class within a class HOT 1
- No support for Shared Project
- Is it possible to Target 4.7.2 instead of 4.6?
- Visual Studio hangs/crashes when creating a d.ts file HOT 2
- Problem with web essential for visual studio 2015 compatibility
- New version generates "export" module instead of "declare" for PUBLIC classes, so interfaces become inaccessible.
- sbyte, ushort, uint, ulong get converted to any
- Dts package did not load correctly HOT 10
- Error when generating class in global scope HOT 1
- No support in Vs 22 HOT 5
- GlobalScope=true option is not respected in navigation property types
- Modifying tsdefgen.json requires reloading Visual Studio
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 typescriptdefinitiongenerator.