GithubHelp home page GithubHelp logo

nestjs-mongoose-discriminators's Introduction

Hi there, I'm Mr. Kenikh ๐Ÿ‘‹

About Me

I am a software developer really interested and passionate about technologies related to the blockchain and automation. Greatly encouraged and focused on building efficient, scalable solutions powering the future for DeFi, GameFi, and Web3. I am always zealous to contribute to open-source projects and love learning from technological discoveries.

Skills

  • Languages: JavaScript, TypeScript, Go
  • Technologies: Ethereum, Cosmos, DeFi protocols, Cosmos SDK
  • Tools: GitHub, Docker

Projects

  • Cronos: An Ethereum-compatible blockchain network built on Cosmos SDK.
  • REStake: Auto-compounder script for Cosmos Validators.
  • Auto-Compound: A project enabling validators to automatically accumulate rewards.

Looking Forward

I'm on the lookout for opportunities where I can contribute my skills in blockchain and automation. If you're interested in collaborating, feel free to reach out!


This README is a living document, and I'll be updating it as I grow and take on new challenges. Thanks for stopping by!

nestjs-mongoose-discriminators's People

Contributors

mr-kenikh avatar

Watchers

 avatar

nestjs-mongoose-discriminators's Issues

Problem: resource service test fails

Resource schema has a field msgs that contains an array of messages: MsgAlert, MsgInfo or MsgWarn (each implements Msg). But in-array properties are not cast to the associated SchemaType:

ResourceService โ€บ should be casted

    - Expected  - 1
    + Received  + 1

    @@ -1,11 +1,11 @@
      Object {
        "index": 0,
        "msgs": Array [
          Object {
            "action": "wipe",
    -       "instance_id": 0,
    +       "instance_id": "0",
            "type": "alert",
          },
          Object {
            "info": "success",
            "type": "info",

The problem is that value field of discriminator mapping has null value, although alert, info or warn is expected:

ResourceService โ€บ should match discriminator mapping

    - Expected  - 3
    + Received  + 3

      Array [
        Object {
          "isRoot": true,
          "key": "type",
    -     "value": "alert",
    +     "value": null,
        },
        Object {
          "isRoot": true,
          "key": "type",
    -     "value": "info",
    +     "value": null,
        },
        Object {
          "isRoot": true,
          "key": "type",
    -     "value": "warn",
    +     "value": null,
        },
      ]

Tests of the msg service passes successfully, there is no problem with discriminator mapping.

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.