Giter Site home page Giter Site logo

fixedwidth's Introduction

Hi there, I'm Michael! ๐Ÿ‘‹

I'm a Husband, Father & Engineer.

Gists

https://gist.github.com/mscribellito

๐ŸŒฑ Iโ€™m currently learning:

๐Ÿ“ซ How to reach me:

Skills:

Languages:

Go Python .NET Bash SQL JSON

Platforms:

Google Cloud Platform Amazon Web Services

OS:

Linux Windows

Tools:

Terraform Docker Git

fixedwidth's People

Contributors

mscribellito avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fixedwidth's Issues

Deserializing char with ' '

Hello,
When using a char field with [TextField(__, 1)] attribute the parser considers spaces ' ' as empty '' and raises a format exception.
I'm currently using a custom formatter to avoid this.

Additionally, I liked the exception used on Custom Formatters and missed the exception when testing without custom, it would help troubleshot this kind of formatting errors because it points to the exact field that raised the exception.

Feature Request: ITextFormatter pass TextFieldAttribute

Hello,
can you pass the TextFieldAttribute when calling Serialize or Deserialize on a custom formatter (ITextFormatter)?
Use-Case might be: custom formatter must know the lenght / decimal places of the TextField-Attribute.

Thanks for your feedback in advance.

Deserializing int with Padding zeros on only zeros string

Hello again,

When using the padding with zeros option (Padding = '0') to parse "00000" string it raises and exception of wrong string format. I believe this is due to parsing an empty string (all zeros were removed) into integer.

Allow formatters to have parameters

It would be very useful if formatters could have parameters so that, for example, an alternative BooleanFormatter could be created which could have the expected true and false values passed in as parameters, rather than only working for true = 1.

Currently this isn't possible, as the Formatter on TextField is internal.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.