Skip to content

AttributeError: '_io.TextIOWrapper' object has no attribute 'get' #384

@Gujjar95

Description

@Gujjar95

json schema error AttributeError: '_io.TextIOWrapper' object has no attribute 'get'
My files

{
	"sender" : 6
	"receiver" : 4,
	"transaction_type" : "same",
	"transaction_amount" : "10",
	"transaction_status" : "pending",
	"transaction_receiver_address":"",
	"transaction_sender_address" : "",
	"transaction_currency_involved" : "Usd"
} ```
Below is my json schema.

``` {
 "definitions": {},
  "$schema": "http://json-schema.org/draft-04/schema#",
  "id": "http://example.com/example.json",
  "type": "object",
  "properties": {
    "sender": {
      "id": "/properties/sender",
      "type": "integer",
      "title": "The Sender Schema.",
      "description": "An explanation about the purpose of this instance.",
      "default": 0
    },
    "receiver": {
      "id": "/properties/receiver",
      "type": "integer",
      "title": "The Receiver Schema.",
      "description": "An explanation about the purpose of this instance.",
      "default": 0
    },
    "transaction_type": {
      "id": "/properties/transaction_type",
      "type": "string",
      "title": "The Transaction_type Schema.",
      "description": "An explanation about the purpose of this instance.",
      "default": ""
    },
    "transaction_amount": {
      "id": "/properties/transaction_amount",
      "type": "string",
      "title": "The Transaction_amount Schema.",
      "description": "An explanation about the purpose of this instance.",
      "default": ""
    },
    "transaction_status": {
      "id": "/properties/transaction_status",
      "type": "string",
      "title": "The Transaction_status Schema.",
      "description": "An explanation about the purpose of this instance.",
      "default": ""
    },
    "transaction_receiver_address": {
      "id": "/properties/transaction_receiver_address",
      "type": "string",
      "title": "The Transaction_receiver_address Schema.",
      "description": "An explanation about the purpose of this instance.",
      "default": ""
    },
    "transaction_sender_address": {
      "id": "/properties/transaction_sender_address",
      "type": "string",
      "title": "The Transaction_sender_address Schema.",
      "description": "An explanation about the purpose of this instance.",
      "default": ""
    },
    "transaction_currency_involved": {
      "id": "/properties/transaction_currency_involved",
      "type": "string",
      "title": "The Transaction_currency_involved Schema.",
      "description": "An explanation about the purpose of this instance.",
      "default": ""
    }
  }
} ```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions